diff options
Diffstat (limited to 'node_modules/simple-git/src/lib/tasks/task.d.ts')
-rw-r--r-- | node_modules/simple-git/src/lib/tasks/task.d.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/node_modules/simple-git/src/lib/tasks/task.d.ts b/node_modules/simple-git/src/lib/tasks/task.d.ts new file mode 100644 index 0000000..9c64e4e --- /dev/null +++ b/node_modules/simple-git/src/lib/tasks/task.d.ts @@ -0,0 +1,14 @@ +import { BufferTask, EmptyTaskParser, SimpleGitTask, StringTask } from '../types'; +export declare const EMPTY_COMMANDS: []; +export declare type EmptyTask = { + commands: typeof EMPTY_COMMANDS; + format: 'empty'; + parser: EmptyTaskParser; + onError?: undefined; +}; +export declare function adhocExecTask(parser: EmptyTaskParser): EmptyTask; +export declare function configurationErrorTask(error: Error | string): EmptyTask; +export declare function straightThroughStringTask(commands: string[], trimmed?: boolean): StringTask<string>; +export declare function straightThroughBufferTask(commands: string[]): BufferTask<any>; +export declare function isBufferTask<R>(task: SimpleGitTask<R>): task is BufferTask<R>; +export declare function isEmptyTask<R>(task: SimpleGitTask<R>): task is EmptyTask; |