mirror of
https://github.com/murashit/codex-panel.git
synced 2026-07-22 17:30:31 +00:00
Fix no-invalid-void-type lint
This commit is contained in:
parent
594d813aa7
commit
4b8d5da750
2 changed files with 2 additions and 2 deletions
|
|
@ -53,7 +53,7 @@ export async function executeSlashCommand(
|
|||
command: SlashCommandName,
|
||||
args: string,
|
||||
context: SlashCommandExecutionContext,
|
||||
): Promise<SlashCommandExecutionResult | void> {
|
||||
): Promise<SlashCommandExecutionResult | undefined> {
|
||||
if (command === "new") {
|
||||
await context.startNewThread();
|
||||
if (args) return { sendText: args };
|
||||
|
|
|
|||
|
|
@ -548,7 +548,7 @@ export class CodexPanelView extends ItemView {
|
|||
await this.sendMessage();
|
||||
}
|
||||
|
||||
private async executeSlashCommand(command: SlashCommandName, args: string): Promise<SlashCommandExecutionResult | void> {
|
||||
private async executeSlashCommand(command: SlashCommandName, args: string): Promise<SlashCommandExecutionResult | undefined> {
|
||||
if (!this.client) return;
|
||||
return runSlashCommand(command, args, {
|
||||
activeThreadId: this.state.activeThreadId,
|
||||
|
|
|
|||
Loading…
Reference in a new issue