summaryrefslogtreecommitdiff
path: root/cli/js/compiler_options.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-05-06 00:19:18 +0200
committerGitHub <noreply@github.com>2020-05-06 00:19:18 +0200
commit2ecdbb62ae8f925b01e3e49f397d439a2f464a21 (patch)
treeca45ddcf322337affdf1bbb8f87139b373d2d93d /cli/js/compiler_options.ts
parent9cd7d598405f8bf6600775827f870848fd3e120a (diff)
refactor: merge TS compiler into single file (#5091)
Diffstat (limited to 'cli/js/compiler_options.ts')
-rw-r--r--cli/js/compiler_options.ts133
1 files changed, 133 insertions, 0 deletions
diff --git a/cli/js/compiler_options.ts b/cli/js/compiler_options.ts
new file mode 100644
index 000000000..dd1a0a9f2
--- /dev/null
+++ b/cli/js/compiler_options.ts
@@ -0,0 +1,133 @@
+// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
+
+export interface CompilerOptions {
+ allowJs?: boolean;
+
+ allowSyntheticDefaultImports?: boolean;
+
+ allowUmdGlobalAccess?: boolean;
+
+ allowUnreachableCode?: boolean;
+
+ allowUnusedLabels?: boolean;
+
+ alwaysStrict?: boolean;
+
+ baseUrl?: string;
+
+ checkJs?: boolean;
+
+ declaration?: boolean;
+
+ declarationDir?: string;
+
+ declarationMap?: boolean;
+
+ downlevelIteration?: boolean;
+
+ emitBOM?: boolean;
+
+ emitDeclarationOnly?: boolean;
+
+ emitDecoratorMetadata?: boolean;
+
+ esModuleInterop?: boolean;
+
+ experimentalDecorators?: boolean;
+
+ inlineSourceMap?: boolean;
+
+ inlineSources?: boolean;
+
+ isolatedModules?: boolean;
+
+ jsx?: "react" | "preserve" | "react-native";
+
+ jsxFactory?: string;
+
+ keyofStringsOnly?: string;
+
+ useDefineForClassFields?: boolean;
+
+ lib?: string[];
+
+ locale?: string;
+
+ mapRoot?: string;
+
+ module?:
+ | "none"
+ | "commonjs"
+ | "amd"
+ | "system"
+ | "umd"
+ | "es6"
+ | "es2015"
+ | "esnext";
+
+ noEmitHelpers?: boolean;
+
+ noFallthroughCasesInSwitch?: boolean;
+
+ noImplicitAny?: boolean;
+
+ noImplicitReturns?: boolean;
+
+ noImplicitThis?: boolean;
+
+ noImplicitUseStrict?: boolean;
+
+ noResolve?: boolean;
+
+ noStrictGenericChecks?: boolean;
+
+ noUnusedLocals?: boolean;
+
+ noUnusedParameters?: boolean;
+
+ outDir?: string;
+
+ paths?: Record<string, string[]>;
+
+ preserveConstEnums?: boolean;
+
+ removeComments?: boolean;
+
+ resolveJsonModule?: boolean;
+
+ rootDir?: string;
+
+ rootDirs?: string[];
+
+ sourceMap?: boolean;
+
+ sourceRoot?: string;
+
+ strict?: boolean;
+
+ strictBindCallApply?: boolean;
+
+ strictFunctionTypes?: boolean;
+
+ strictPropertyInitialization?: boolean;
+
+ strictNullChecks?: boolean;
+
+ suppressExcessPropertyErrors?: boolean;
+
+ suppressImplicitAnyIndexErrors?: boolean;
+
+ target?:
+ | "es3"
+ | "es5"
+ | "es6"
+ | "es2015"
+ | "es2016"
+ | "es2017"
+ | "es2018"
+ | "es2019"
+ | "es2020"
+ | "esnext";
+
+ types?: string[];
+}