UNPKG

804 BTypeScriptView Raw
1import type { BufferTask, EmptyTaskParser, SimpleGitTask, StringTask } from '../types';
2export declare const EMPTY_COMMANDS: [];
3export declare type EmptyTask = {
4 commands: typeof EMPTY_COMMANDS;
5 format: 'empty';
6 parser: EmptyTaskParser;
7 onError?: undefined;
8};
9export declare function adhocExecTask(parser: EmptyTaskParser): EmptyTask;
10export declare function configurationErrorTask(error: Error | string): EmptyTask;
11export declare function straightThroughStringTask(commands: string[], trimmed?: boolean): StringTask<string>;
12export declare function straightThroughBufferTask(commands: string[]): BufferTask<any>;
13export declare function isBufferTask<R>(task: SimpleGitTask<R>): task is BufferTask<R>;
14export declare function isEmptyTask<R>(task: SimpleGitTask<R>): task is EmptyTask;