1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | export declare function arrayify<T>(arg?: T | T[]): T[];
|
22 |
|
23 |
|
24 |
|
25 |
|
26 | export declare function objectify(arg: any): any;
|
27 | export declare function hasOwnProperty(arg: {}, key: string): boolean;
|
28 |
|
29 |
|
30 |
|
31 |
|
32 | export declare function camelize(stringWithHyphens: string): string;
|
33 | export declare function isUpperCase(str: string): boolean;
|
34 | export declare function isLowerCase(str: string): boolean;
|
35 |
|
36 |
|
37 |
|
38 | export declare function dedent(strings: TemplateStringsArray, ...values: any[]): string;
|
39 |
|
40 |
|
41 |
|
42 | export declare function stripComments(content: string): string;
|
43 |
|
44 |
|
45 |
|
46 | export declare function escapeRegExp(re: string): string;
|
47 |
|
48 | export declare type Equal<T> = (a: T, b: T) => boolean;
|
49 | export declare function arraysAreEqual<T>(a: ReadonlyArray<T> | undefined, b: ReadonlyArray<T> | undefined, eq: Equal<T>): boolean;
|
50 |
|
51 | export declare function find<T, U>(inputs: T[], getResult: (t: T) => U | undefined): U | undefined;
|
52 |
|
53 | export declare function flatMap<T, U>(inputs: ReadonlyArray<T>, getOutputs: (input: T, index: number) => ReadonlyArray<U>): U[];
|
54 |
|
55 | export declare function mapDefined<T, U>(inputs: ReadonlyArray<T>, getOutput: (input: T) => U | undefined): U[];
|
56 | export declare function readBufferWithDetectedEncoding(buffer: Buffer): string;
|
57 | export declare type Encoding = "utf8" | "utf8-bom" | "utf16le" | "utf16be";
|
58 | export declare function detectBufferEncoding(buffer: Buffer, length?: number): Encoding;
|
59 | export declare function denormalizeWinPath(path: string): string;
|