1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | import * as ts from "typescript";
|
19 |
|
20 |
|
21 |
|
22 | export declare function arrayify<T>(arg?: T | T[]): T[];
|
23 |
|
24 |
|
25 |
|
26 |
|
27 | export declare function objectify(arg: any): any;
|
28 | export declare function hasOwnProperty(arg: {}, key: string): boolean;
|
29 |
|
30 |
|
31 |
|
32 |
|
33 | export declare function camelize(stringWithHyphens: string): string;
|
34 | export declare function isUpperCase(str: string): boolean;
|
35 | export declare function isLowerCase(str: string): boolean;
|
36 |
|
37 |
|
38 |
|
39 | export declare function dedent(strings: TemplateStringsArray, ...values: any[]): string;
|
40 |
|
41 |
|
42 |
|
43 | export declare function stripComments(content: string): string;
|
44 |
|
45 |
|
46 |
|
47 | export declare function escapeRegExp(re: string): string;
|
48 |
|
49 | export declare type Equal<T> = (a: T, b: T) => boolean;
|
50 | export declare function arraysAreEqual<T>(a: ReadonlyArray<T> | undefined, b: ReadonlyArray<T> | undefined, eq: Equal<T>): boolean;
|
51 |
|
52 | export declare function find<T, U>(inputs: T[], getResult: (t: T) => U | undefined): U | undefined;
|
53 |
|
54 | export declare function flatMap<T, U>(inputs: ReadonlyArray<T>, getOutputs: (input: T, index: number) => ReadonlyArray<U>): U[];
|
55 |
|
56 | export declare function mapDefined<T, U>(inputs: ReadonlyArray<T>, getOutput: (input: T) => U | undefined): U[];
|
57 | export declare function readBufferWithDetectedEncoding(buffer: Buffer): string;
|
58 | export declare type Encoding = "utf8" | "utf8-bom" | "utf16le" | "utf16be";
|
59 | export declare function detectBufferEncoding(buffer: Buffer, length?: number): Encoding;
|
60 | export declare function trimSingleQuotes(str: string): string;
|
61 | export declare function denormalizeWinPath(path: string): string;
|
62 | export declare function isPascalCased(name: string): boolean;
|
63 | export declare function isCamelCased(name: string): boolean;
|
64 | export declare function isKebabCased(name: string): boolean;
|
65 | export declare function isSnakeCased(name: string): boolean;
|
66 |
|
67 |
|
68 |
|
69 |
|
70 |
|
71 | export declare function tryResolvePackage(packageName: string, relativeTo?: string): string | undefined;
|
72 |
|
73 |
|
74 |
|
75 | export declare function getIndentation(node: ts.Node, sourceFile: ts.SourceFile): string;
|
76 |
|
77 |
|
78 |
|
79 | export declare function newLineWithIndentation(node: ts.Node, sourceFile: ts.SourceFile, linesCount?: number): string;
|
80 |
|
81 |
|
82 |
|
83 | export declare function isFunctionScopeBoundary(node: ts.Node): boolean;
|