improves block functionality
adds cli compatible prompts/logs adds logfile function for debug adds multiselect support new fieldRename adds listFieldNames
This commit is contained in:
5
types.ts
5
types.ts
@@ -1,3 +1,5 @@
|
||||
import type { TerminalBlock } from "./cli/TerminalLayout.ts";
|
||||
|
||||
declare global {
|
||||
type ToolFunc<T extends unknown[]> = (...args: T) => Promise<void>;
|
||||
interface ITool {
|
||||
@@ -6,5 +8,8 @@ declare global {
|
||||
run: ToolFunc<any[]>;
|
||||
help?: () => Promise<void> | void;
|
||||
done?: () => Promise<void> | void;
|
||||
setBlock?: (block: TerminalBlock) => void;
|
||||
}
|
||||
|
||||
type callback = (...args: any[]) => any;
|
||||
}
|
||||
|
Reference in New Issue
Block a user