From 4081c2036a5af21519095da1b8b99c507b0fba93 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sun, 17 Apr 2022 17:37:10 +0200 Subject: Deprecation --- node_modules/simple-git/src/lib/utils/util.d.ts | 45 ------------------------- 1 file changed, 45 deletions(-) delete mode 100644 node_modules/simple-git/src/lib/utils/util.d.ts (limited to 'node_modules/simple-git/src/lib/utils/util.d.ts') diff --git a/node_modules/simple-git/src/lib/utils/util.d.ts b/node_modules/simple-git/src/lib/utils/util.d.ts deleted file mode 100644 index 5f0b543..0000000 --- a/node_modules/simple-git/src/lib/utils/util.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/// -import { Maybe } from '../types'; -export declare const NULL = "\0"; -export declare const NOOP: (...args: any[]) => void; -/** - * Returns either the source argument when it is a `Function`, or the default - * `NOOP` function constant - */ -export declare function asFunction any>(source: T | any): T; -/** - * Determines whether the supplied argument is both a function, and is not - * the `NOOP` function. - */ -export declare function isUserFunction(source: T | any): source is T; -export declare function splitOn(input: string, char: string): [string, string]; -export declare function first(input: T, offset?: number): Maybe; -export declare function first(input: T, offset?: number): Maybe; -export declare function last(input: T, offset?: number): Maybe; -export declare function last(input: T, offset?: number): Maybe; -export declare function last(input: T, offset?: number): Maybe; -export declare function toLinesWithContent(input?: string, trimmed?: boolean, separator?: string): string[]; -declare type LineWithContentCallback = (line: string) => T; -export declare function forEachLineWithContent(input: string, callback: LineWithContentCallback): T[]; -export declare function folderExists(path: string): boolean; -/** - * Adds `item` into the `target` `Array` or `Set` when it is not already present and returns the `item`. - */ -export declare function append(target: T[] | Set, item: T): typeof item; -/** - * Adds `item` into the `target` `Array` when it is not already present and returns the `target`. - */ -export declare function including(target: T[], item: T): typeof target; -export declare function remove(target: Set | T[], item: T): T; -export declare const objectToString: (input: any) => string; -export declare function asArray(source: T | T[]): T[]; -export declare function asStringArray(source: T | T[]): string[]; -export declare function asNumber(source: string | null | undefined, onNaN?: number): number; -export declare function prefixedArray(input: T[], prefix: T): T[]; -export declare function bufferToString(input: Buffer | Buffer[]): string; -/** - * Get a new object from a source object with only the listed properties. - */ -export declare function pick(source: Record, properties: string[]): any; -export declare function delay(duration?: number): Promise; -export {}; -- cgit