1 | import * as ts from 'typescript';
|
2 | declare module 'typescript' {
|
3 | interface Symbol {
|
4 | id?: number;
|
5 | parent?: ts.Symbol;
|
6 | }
|
7 | interface Node {
|
8 | symbol?: ts.Symbol;
|
9 | localSymbol?: ts.Symbol;
|
10 | }
|
11 | }
|
12 | export declare function createCompilerDiagnostic(message: ts.DiagnosticMessage, ...args: (string | number)[]): ts.Diagnostic;
|
13 | export declare function createCompilerDiagnostic(message: ts.DiagnosticMessage): ts.Diagnostic;
|
14 | export declare const optionDeclarations: CommandLineOption[];
|
15 | export interface CommandLineOptionBase {
|
16 | name: string;
|
17 | type: 'string' | 'number' | 'boolean' | 'object' | 'list' | Map<number | string, any>;
|
18 | isFilePath?: boolean;
|
19 | shortName?: string;
|
20 | description?: ts.DiagnosticMessage;
|
21 | paramType?: ts.DiagnosticMessage;
|
22 | experimental?: boolean;
|
23 | isTSConfigOnly?: boolean;
|
24 | }
|
25 | export interface CommandLineOptionOfPrimitiveType extends CommandLineOptionBase {
|
26 | type: 'string' | 'number' | 'boolean';
|
27 | }
|
28 | export interface CommandLineOptionOfCustomType extends CommandLineOptionBase {
|
29 | type: Map<number | string, any>;
|
30 | }
|
31 | export interface TsConfigOnlyOption extends CommandLineOptionBase {
|
32 | type: 'object';
|
33 | }
|
34 | export interface CommandLineOptionOfListType extends CommandLineOptionBase {
|
35 | type: 'list';
|
36 | element: CommandLineOptionOfCustomType | CommandLineOptionOfPrimitiveType;
|
37 | }
|
38 | export declare type CommandLineOption = CommandLineOptionOfCustomType | CommandLineOptionOfPrimitiveType | TsConfigOnlyOption | CommandLineOptionOfListType;
|