|
@@ -1,33 +1,32 @@
|
|
|
|
|
|
declare module monaco.languages.typescript {
|
|
declare module monaco.languages.typescript {
|
|
|
|
|
|
- export enum ModuleKind {
|
|
|
|
|
|
+ enum ModuleKind {
|
|
None = 0,
|
|
None = 0,
|
|
CommonJS = 1,
|
|
CommonJS = 1,
|
|
AMD = 2,
|
|
AMD = 2,
|
|
UMD = 3,
|
|
UMD = 3,
|
|
System = 4,
|
|
System = 4,
|
|
- ES6 = 5,
|
|
|
|
ES2015 = 5,
|
|
ES2015 = 5,
|
|
}
|
|
}
|
|
-
|
|
|
|
- export enum JsxEmit {
|
|
|
|
|
|
+ enum JsxEmit {
|
|
None = 0,
|
|
None = 0,
|
|
Preserve = 1,
|
|
Preserve = 1,
|
|
React = 2,
|
|
React = 2,
|
|
}
|
|
}
|
|
-
|
|
|
|
- export enum NewLineKind {
|
|
|
|
|
|
+ enum NewLineKind {
|
|
CarriageReturnLineFeed = 0,
|
|
CarriageReturnLineFeed = 0,
|
|
LineFeed = 1,
|
|
LineFeed = 1,
|
|
}
|
|
}
|
|
|
|
|
|
- export enum ScriptTarget {
|
|
|
|
|
|
+ enum ScriptTarget {
|
|
ES3 = 0,
|
|
ES3 = 0,
|
|
ES5 = 1,
|
|
ES5 = 1,
|
|
- ES6 = 2,
|
|
|
|
ES2015 = 2,
|
|
ES2015 = 2,
|
|
- Latest = 2,
|
|
|
|
|
|
+ ES2016 = 3,
|
|
|
|
+ ES2017 = 4,
|
|
|
|
+ ESNext = 5,
|
|
|
|
+ Latest = 5,
|
|
}
|
|
}
|
|
|
|
|
|
export enum ModuleResolutionKind {
|
|
export enum ModuleResolutionKind {
|
|
@@ -35,58 +34,70 @@ declare module monaco.languages.typescript {
|
|
NodeJs = 2,
|
|
NodeJs = 2,
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ type CompilerOptionsValue = string | number | boolean | (string | number)[] | string[];
|
|
interface CompilerOptions {
|
|
interface CompilerOptions {
|
|
- allowNonTsExtensions?: boolean;
|
|
|
|
|
|
+ allowJs?: boolean;
|
|
|
|
+ allowSyntheticDefaultImports?: boolean;
|
|
|
|
+ allowUnreachableCode?: boolean;
|
|
|
|
+ allowUnusedLabels?: boolean;
|
|
|
|
+ alwaysStrict?: boolean;
|
|
|
|
+ baseUrl?: string;
|
|
charset?: string;
|
|
charset?: string;
|
|
declaration?: boolean;
|
|
declaration?: boolean;
|
|
- diagnostics?: boolean;
|
|
|
|
|
|
+ declarationDir?: string;
|
|
|
|
+ disableSizeLimit?: boolean;
|
|
emitBOM?: boolean;
|
|
emitBOM?: boolean;
|
|
- help?: boolean;
|
|
|
|
- init?: boolean;
|
|
|
|
|
|
+ emitDecoratorMetadata?: boolean;
|
|
|
|
+ experimentalDecorators?: boolean;
|
|
|
|
+ forceConsistentCasingInFileNames?: boolean;
|
|
|
|
+ importHelpers?: boolean;
|
|
inlineSourceMap?: boolean;
|
|
inlineSourceMap?: boolean;
|
|
inlineSources?: boolean;
|
|
inlineSources?: boolean;
|
|
|
|
+ isolatedModules?: boolean;
|
|
jsx?: JsxEmit;
|
|
jsx?: JsxEmit;
|
|
- reactNamespace?: string;
|
|
|
|
- listFiles?: boolean;
|
|
|
|
|
|
+ lib?: string[];
|
|
locale?: string;
|
|
locale?: string;
|
|
mapRoot?: string;
|
|
mapRoot?: string;
|
|
|
|
+ maxNodeModuleJsDepth?: number;
|
|
module?: ModuleKind;
|
|
module?: ModuleKind;
|
|
|
|
+ moduleResolution?: ModuleResolutionKind;
|
|
newLine?: NewLineKind;
|
|
newLine?: NewLineKind;
|
|
noEmit?: boolean;
|
|
noEmit?: boolean;
|
|
noEmitHelpers?: boolean;
|
|
noEmitHelpers?: boolean;
|
|
noEmitOnError?: boolean;
|
|
noEmitOnError?: boolean;
|
|
noErrorTruncation?: boolean;
|
|
noErrorTruncation?: boolean;
|
|
|
|
+ noFallthroughCasesInSwitch?: boolean;
|
|
noImplicitAny?: boolean;
|
|
noImplicitAny?: boolean;
|
|
|
|
+ noImplicitReturns?: boolean;
|
|
|
|
+ noImplicitThis?: boolean;
|
|
|
|
+ noUnusedLocals?: boolean;
|
|
|
|
+ noUnusedParameters?: boolean;
|
|
|
|
+ noImplicitUseStrict?: boolean;
|
|
noLib?: boolean;
|
|
noLib?: boolean;
|
|
noResolve?: boolean;
|
|
noResolve?: boolean;
|
|
out?: string;
|
|
out?: string;
|
|
- outFile?: string;
|
|
|
|
outDir?: string;
|
|
outDir?: string;
|
|
|
|
+ outFile?: string;
|
|
preserveConstEnums?: boolean;
|
|
preserveConstEnums?: boolean;
|
|
project?: string;
|
|
project?: string;
|
|
|
|
+ reactNamespace?: string;
|
|
|
|
+ jsxFactory?: string;
|
|
removeComments?: boolean;
|
|
removeComments?: boolean;
|
|
rootDir?: string;
|
|
rootDir?: string;
|
|
|
|
+ rootDirs?: string[];
|
|
|
|
+ skipLibCheck?: boolean;
|
|
|
|
+ skipDefaultLibCheck?: boolean;
|
|
sourceMap?: boolean;
|
|
sourceMap?: boolean;
|
|
sourceRoot?: string;
|
|
sourceRoot?: string;
|
|
|
|
+ strictNullChecks?: boolean;
|
|
suppressExcessPropertyErrors?: boolean;
|
|
suppressExcessPropertyErrors?: boolean;
|
|
suppressImplicitAnyIndexErrors?: boolean;
|
|
suppressImplicitAnyIndexErrors?: boolean;
|
|
target?: ScriptTarget;
|
|
target?: ScriptTarget;
|
|
- version?: boolean;
|
|
|
|
- watch?: boolean;
|
|
|
|
- isolatedModules?: boolean;
|
|
|
|
- experimentalDecorators?: boolean;
|
|
|
|
- emitDecoratorMetadata?: boolean;
|
|
|
|
- moduleResolution?: ModuleResolutionKind;
|
|
|
|
- allowUnusedLabels?: boolean;
|
|
|
|
- allowUnreachableCode?: boolean;
|
|
|
|
- noImplicitReturns?: boolean;
|
|
|
|
- noFallthroughCasesInSwitch?: boolean;
|
|
|
|
- forceConsistentCasingInFileNames?: boolean;
|
|
|
|
- allowSyntheticDefaultImports?: boolean;
|
|
|
|
- allowJs?: boolean;
|
|
|
|
- noImplicitUseStrict?: boolean;
|
|
|
|
- disableSizeLimit?: boolean;
|
|
|
|
- [option: string]: string | number | boolean;
|
|
|
|
|
|
+ traceResolution?: boolean;
|
|
|
|
+ types?: string[];
|
|
|
|
+ /** Paths used to compute primary types search locations */
|
|
|
|
+ typeRoots?: string[];
|
|
|
|
+ [option: string]: CompilerOptionsValue | undefined;
|
|
}
|
|
}
|
|
|
|
|
|
export interface DiagnosticsOptions {
|
|
export interface DiagnosticsOptions {
|