From 3b7814be8996e8b727ea73597f6074cce8ee0763 Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Thu, 26 May 2016 17:04:10 -0700 Subject: [PATCH 1/3] Reorder options alphabetically --- src/compiler/types.ts | 77 +++++++++++++++++++------------------------ 1 file changed, 34 insertions(+), 43 deletions(-) diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 7613c489920..c240fd561c8 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -2445,83 +2445,74 @@ namespace ts { export type CompilerOptionsValue = string | number | boolean | (string | number)[] | TsConfigOnlyOptions; export interface CompilerOptions { - allowNonTsExtensions?: boolean; + allowJs?: boolean; + /*@internal*/ allowNonTsExtensions?: boolean; + allowSyntheticDefaultImports?: boolean; + allowUnreachableCode?: boolean; + allowUnusedLabels?: boolean; + baseUrl?: string; charset?: string; + /* @internal */ configFilePath?: string; // When options come from a config file, its path is recorded here declaration?: boolean; declarationDir?: string; diagnostics?: boolean; emitBOM?: boolean; - help?: boolean; - init?: boolean; + emitDecoratorMetadata?: boolean; + experimentalDecorators?: boolean; + forceConsistentCasingInFileNames?: boolean; + /*@internal*/help?: boolean; + /*@internal*/init?: boolean; inlineSourceMap?: boolean; inlineSources?: boolean; + isolatedModules?: boolean; jsx?: JsxEmit; - reactNamespace?: string; - listFiles?: boolean; - typesSearchPaths?: string[]; + lib?: string[]; + /*@internal*/listEmittedFiles?: boolean; + /*@internal*/listFiles?: boolean; locale?: string; mapRoot?: string; module?: ModuleKind; + moduleResolution?: ModuleResolutionKind; newLine?: NewLineKind; noEmit?: boolean; noEmitHelpers?: boolean; noEmitOnError?: boolean; noErrorTruncation?: boolean; + noFallthroughCasesInSwitch?: boolean; noImplicitAny?: boolean; + noImplicitReturns?: boolean; noImplicitThis?: boolean; + noImplicitUseStrict?: boolean; noLib?: boolean; noResolve?: boolean; out?: string; - outFile?: string; outDir?: string; + outFile?: string; + paths?: PathSubstitutions; preserveConstEnums?: boolean; - /* @internal */ pretty?: DiagnosticStyle; project?: string; + /* @internal */ pretty?: DiagnosticStyle; + reactNamespace?: string; removeComments?: boolean; rootDir?: string; + rootDirs?: RootPaths; + skipLibCheck?: boolean; + /* @internal */ skipDefaultLibCheck?: boolean; sourceMap?: boolean; sourceRoot?: string; + strictNullChecks?: boolean; + /* @internal */ stripInternal?: boolean; suppressExcessPropertyErrors?: boolean; suppressImplicitAnyIndexErrors?: boolean; + /* @internal */ suppressOutputPathCheck?: boolean; // Do not perform validation of output file name in transpile scenarios target?: ScriptTarget; - version?: boolean; - watch?: boolean; - isolatedModules?: boolean; - experimentalDecorators?: boolean; - emitDecoratorMetadata?: boolean; - moduleResolution?: ModuleResolutionKind; - allowUnusedLabels?: boolean; - allowUnreachableCode?: boolean; - noImplicitReturns?: boolean; - noFallthroughCasesInSwitch?: boolean; - forceConsistentCasingInFileNames?: boolean; - baseUrl?: string; - paths?: PathSubstitutions; - rootDirs?: RootPaths; traceResolution?: boolean; - allowSyntheticDefaultImports?: boolean; - allowJs?: boolean; - noImplicitUseStrict?: boolean; - strictNullChecks?: boolean; - skipLibCheck?: boolean; - listEmittedFiles?: boolean; - lib?: string[]; - /* @internal */ stripInternal?: boolean; - - // Skip checking lib.d.ts to help speed up tests. - /* @internal */ skipDefaultLibCheck?: boolean; - // Do not perform validation of output file name in transpile scenarios - /* @internal */ suppressOutputPathCheck?: boolean; - - /* @internal */ - // When options come from a config file, its path is recorded here - configFilePath?: string; - /* @internal */ - // Path used to used to compute primary search locations - typesRoot?: string; types?: string[]; + /* @internal */ typesRoot?: string; + typesSearchPaths?: string[]; // Path used to used to compute primary search locations + /*@internal*/ version?: boolean; + /*@internal*/ watch?: boolean; - list?: string[]; [option: string]: CompilerOptionsValue | undefined; } From 5d9c871d9576df30865c081ee8a972ef8437d54d Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Thu, 26 May 2016 17:12:13 -0700 Subject: [PATCH 2/3] Mark diagnostics, and skipDefaultLibCheck as internal --- src/compiler/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/types.ts b/src/compiler/types.ts index c240fd561c8..4a66fc42ef0 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -2455,7 +2455,7 @@ namespace ts { /* @internal */ configFilePath?: string; // When options come from a config file, its path is recorded here declaration?: boolean; declarationDir?: string; - diagnostics?: boolean; + /* @internal */ diagnostics?: boolean; emitBOM?: boolean; emitDecoratorMetadata?: boolean; experimentalDecorators?: boolean; @@ -2497,7 +2497,7 @@ namespace ts { rootDir?: string; rootDirs?: RootPaths; skipLibCheck?: boolean; - /* @internal */ skipDefaultLibCheck?: boolean; + skipDefaultLibCheck?: boolean; sourceMap?: boolean; sourceRoot?: string; strictNullChecks?: boolean; From 7eb5f4b17959b38978f2b70a8c8c5d43c0de8b7a Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Wed, 8 Jun 2016 12:49:50 -0700 Subject: [PATCH 3/3] Remove comments --- src/compiler/types.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compiler/types.ts b/src/compiler/types.ts index c956f5d8249..b5d8ee6db16 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -2490,7 +2490,7 @@ namespace ts { allowUnusedLabels?: boolean; baseUrl?: string; charset?: string; - /* @internal */ configFilePath?: string; // When options come from a config file, its path is recorded here + /* @internal */ configFilePath?: string; declaration?: boolean; declarationDir?: string; /* @internal */ diagnostics?: boolean; @@ -2542,12 +2542,12 @@ namespace ts { /* @internal */ stripInternal?: boolean; suppressExcessPropertyErrors?: boolean; suppressImplicitAnyIndexErrors?: boolean; - /* @internal */ suppressOutputPathCheck?: boolean; // Do not perform validation of output file name in transpile scenarios + /* @internal */ suppressOutputPathCheck?: boolean; target?: ScriptTarget; traceResolution?: boolean; types?: string[]; /* @internal */ typesRoot?: string; - typesSearchPaths?: string[]; // Path used to used to compute primary search locations + typesSearchPaths?: string[]; /*@internal*/ version?: boolean; /*@internal*/ watch?: boolean;