From 118007168a98d4a658e0cced2d3a52981d1cc745 Mon Sep 17 00:00:00 2001 From: hypercross Date: Fri, 3 Apr 2026 15:11:55 +0800 Subject: [PATCH] fix: export command result as well --- src/index.ts | 2 +- src/utils/command/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 822ccc3..9e43f2f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -17,7 +17,7 @@ export type { Region, RegionAxis } from './core/region'; export { createRegion, applyAlign, shuffle, moveToRegion, moveToRegionAll, removeFromRegion } from './core/region'; // Utils -export type { Command, CommandSchema, CommandParamSchema, CommandOptionSchema, CommandFlagSchema } from './utils/command'; +export type { Command, CommandResult, CommandSchema, CommandParamSchema, CommandOptionSchema, CommandFlagSchema } from './utils/command'; export { parseCommand, parseCommandSchema, validateCommand, parseCommandWithSchema, applyCommandSchema } from './utils/command'; export type { CommandRunner, CommandRunnerHandler, CommandRunnerContext, PromptEvent, CommandRunnerEvents } from './utils/command'; diff --git a/src/utils/command/index.ts b/src/utils/command/index.ts index 30ff9bc..4733320 100644 --- a/src/utils/command/index.ts +++ b/src/utils/command/index.ts @@ -18,5 +18,5 @@ export type { CommandFlagSchema, CommandSchema, } from './types'; -export type { CommandRunner, CommandRunnerHandler, CommandRunnerContext, PromptEvent, CommandRunnerEvents } from './command-runner'; +export type { CommandRunner, CommandResult, CommandRunnerHandler, CommandRunnerContext, PromptEvent, CommandRunnerEvents } from './command-runner'; export type { CommandRegistry, CommandRunnerContextExport } from './command-registry';