From 5d2b3b4fab7680dda4776693a0ddaf03dbe75208 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 | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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..6babfe0 100644 --- a/src/utils/command/index.ts +++ b/src/utils/command/index.ts @@ -13,6 +13,7 @@ export { } from './command-registry'; export type { Command, + CommandResult, CommandParamSchema, CommandOptionSchema, CommandFlagSchema,