mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-29 18:02:06 -05:00
17 lines
445 B
TypeScript
17 lines
445 B
TypeScript
type ToolsFunction = (
|
|
directory: string
|
|
) => Promise<{ stdout: string; stderr: string }>;
|
|
|
|
type ToolsFunctionWithArg = (
|
|
directory: string,
|
|
start: number
|
|
) => Promise<{ stdout: string; stderr: string }>;
|
|
|
|
export interface ToolsSwitch {
|
|
'create-next-step': ToolsFunction;
|
|
'create-empty-steps': ToolsFunctionWithArg;
|
|
'insert-step': ToolsFunctionWithArg;
|
|
'delete-step': ToolsFunctionWithArg;
|
|
'update-step-titles': ToolsFunction;
|
|
}
|