From 01160246e4a0c0052181c72a53737e356ea7d02d Mon Sep 17 00:00:00 2001 From: Minteck Date: Sat, 12 Feb 2022 10:33:06 +0100 Subject: First commit --- node_modules/simple-git/src/lib/utils/task-options.d.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 node_modules/simple-git/src/lib/utils/task-options.d.ts (limited to 'node_modules/simple-git/src/lib/utils/task-options.d.ts') diff --git a/node_modules/simple-git/src/lib/utils/task-options.d.ts b/node_modules/simple-git/src/lib/utils/task-options.d.ts new file mode 100644 index 0000000..23d3705 --- /dev/null +++ b/node_modules/simple-git/src/lib/utils/task-options.d.ts @@ -0,0 +1,13 @@ +import { Maybe, Options } from '../types'; +export declare function appendTaskOptions(options: Maybe, commands?: string[]): string[]; +export declare function getTrailingOptions(args: IArguments, initialPrimitive?: number, objectOnly?: boolean): string[]; +/** + * Given any number of arguments, returns the trailing options argument, ignoring a trailing function argument + * if there is one. When not found, the return value is null. + */ +export declare function trailingOptionsArgument(args: IArguments): Maybe; +/** + * Returns either the source argument when it is a `Function`, or the default + * `NOOP` function constant + */ +export declare function trailingFunctionArgument(args: unknown[] | IArguments | unknown, includeNoop?: boolean): Maybe<(...args: any[]) => unknown>; -- cgit