From d25e11bee6ca5ca523884da132d18e1400e077b9 Mon Sep 17 00:00:00 2001 From: Minteck Date: Tue, 24 Aug 2021 14:41:48 +0200 Subject: Initial commit --- node_modules/nexe/lib/util.d.ts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 node_modules/nexe/lib/util.d.ts (limited to 'node_modules/nexe/lib/util.d.ts') diff --git a/node_modules/nexe/lib/util.d.ts b/node_modules/nexe/lib/util.d.ts new file mode 100644 index 0000000..af5d668 --- /dev/null +++ b/node_modules/nexe/lib/util.d.ts @@ -0,0 +1,27 @@ +/// +import { readFile, writeFile, stat } from 'fs'; +import { execFile } from 'child_process'; +declare const rimrafAsync: (arg1: string) => Promise; +export declare const STDIN_FLAG = "[stdin]"; +export declare function each(list: T[] | Promise, action: (item: T, index: number, list: T[]) => Promise): Promise; +export declare function wrap(code: string): string; +declare function padRight(str: string, l: number): string; +declare const bound: MethodDecorator; +declare function dequote(input: string): string; +export interface ReadFileAsync { + (path: string): Promise; + (path: string, encoding: string): Promise; +} +declare const readFileAsync: typeof readFile.__promisify__; +declare const writeFileAsync: typeof writeFile.__promisify__; +declare const statAsync: typeof stat.__promisify__; +declare const execFileAsync: typeof execFile.__promisify__; +declare const isWindows: boolean; +declare function pathExistsAsync(path: string): Promise; +declare function isDirectoryAsync(path: string): Promise; +/** + * @param version See if this version is greather than the second one + * @param operand Version to compare against + */ +declare function semverGt(version: string, operand: string): boolean; +export { dequote, padRight, semverGt, bound, isWindows, rimrafAsync, statAsync, execFileAsync, readFileAsync, pathExistsAsync, isDirectoryAsync, writeFileAsync, }; -- cgit