Fix no-invalid-void-type lint

This commit is contained in:
murashit 2026-05-23 04:49:36 +09:00
parent 594d813aa7
commit 4b8d5da750
2 changed files with 2 additions and 2 deletions

View file

@ -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 };

View file

@ -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,