@Stability(value=Experimental) @Internal public static final class TypeScriptCompilerOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements TypeScriptCompilerOptions
TypeScriptCompilerOptionssoftware.amazon.jsii.JsiiObject.InitializationModeTypeScriptCompilerOptions.Builder, TypeScriptCompilerOptions.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
protected |
Jsii$Proxy(TypeScriptCompilerOptions.Builder builder)
Constructor that initializes the object based on literal property values passed by the
TypeScriptCompilerOptions.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
Boolean |
getAllowJs()
(experimental) Allow JavaScript files to be compiled.
|
Boolean |
getAllowSyntheticDefaultImports()
(experimental) Allow default imports from modules with no default export.
|
Boolean |
getAlwaysStrict()
(experimental) Ensures that your files are parsed in the ECMAScript strict mode, and emit “use strict” for each source file.
|
String |
getBaseUrl()
(experimental) Lets you set a base directory to resolve non-absolute module names.
|
Boolean |
getDeclaration()
(experimental) To be specified along with the above.
|
String |
getDeclarationDir()
(experimental) Offers a way to configure the root directory for where declaration files are emitted.
|
Boolean |
getEmitDecoratorMetadata()
(experimental) Enables experimental support for decorators, which is in stage 2 of the TC39 standardization process.
|
Boolean |
getEsModuleInterop()
(experimental) Emit __importStar and __importDefault helpers for runtime babel ecosystem compatibility and enable --allowSyntheticDefaultImports for typesystem compatibility.
|
Boolean |
getExperimentalDecorators()
(experimental) Enables experimental support for decorators, which is in stage 2 of the TC39 standardization process.
|
Boolean |
getForceConsistentCasingInFileNames()
(experimental) Disallow inconsistently-cased references to the same file.
|
Boolean |
getInlineSourceMap()
(experimental) When set, instead of writing out a .js.map file to provide source maps, TypeScript will embed the source map content in the .js files.
|
Boolean |
getInlineSources()
(experimental) When set, TypeScript will include the original content of the .ts file as an embedded string in the source map.
|
Boolean |
getIsolatedModules()
(experimental) Perform additional checks to ensure that separate compilation (such as with transpileModule or @babel/plugin-transform-typescript) would be safe.
|
TypeScriptJsxMode |
getJsx()
(experimental) Support JSX in .tsx files: "react", "preserve", "react-native" etc.
|
List<String> |
getLib()
(experimental) Reference for type definitions / libraries to use (eg.
|
String |
getModule()
(experimental) Sets the module system for the program.
|
TypeScriptModuleResolution |
getModuleResolution()
(experimental) Determine how modules get resolved.
|
Boolean |
getNoEmit()
(experimental) Do not emit outputs.
|
Boolean |
getNoEmitOnError()
(experimental) Do not emit compiler output files like JavaScript source code, source-maps or declarations if any errors were reported.
|
Boolean |
getNoFallthroughCasesInSwitch()
(experimental) Report errors for fallthrough cases in switch statements.
|
Boolean |
getNoImplicitAny()
(experimental) In some cases where no type annotations are present, TypeScript will fall back to a type of any for a variable when it cannot infer the type.
|
Boolean |
getNoImplicitReturns()
(experimental) When enabled, TypeScript will check all code paths in a function to ensure they return a value.
|
Boolean |
getNoImplicitThis()
(experimental) Raise error on ‘this’ expressions with an implied ‘any’ type.
|
Boolean |
getNoPropertyAccessFromIndexSignature()
(experimental) Raise error on use of the dot syntax to access fields which are not defined.
|
Boolean |
getNoUncheckedIndexedAccess()
(experimental) Raise error when accessing indexes on objects with unknown keys defined in index signatures.
|
Boolean |
getNoUnusedLocals()
(experimental) Report errors on unused local variables.
|
Boolean |
getNoUnusedParameters()
(experimental) Report errors on unused parameters in functions.
|
String |
getOutDir()
(experimental) Output directory for the compiled files.
|
Map<String,List<String>> |
getPaths()
(experimental) A series of entries which re-map imports to lookup locations relative to the baseUrl, there is a larger coverage of paths in the handbook.
|
Boolean |
getResolveJsonModule()
(experimental) Allows importing modules with a ‘.json’ extension, which is a common practice in node projects.
|
String |
getRootDir()
(experimental) Specifies the root directory of input files.
|
Boolean |
getSkipLibCheck()
(experimental) Skip type checking of all declaration files (*.d.ts).
|
Boolean |
getStrict()
(experimental) The strict flag enables a wide range of type checking behavior that results in stronger guarantees of program correctness.
|
Boolean |
getStrictNullChecks()
(experimental) When strictNullChecks is false, null and undefined are effectively ignored by the language.
|
Boolean |
getStrictPropertyInitialization()
(experimental) When set to true, TypeScript will raise an error when a class property was declared but not set in the constructor.
|
Boolean |
getStripInternal()
(experimental) Do not emit declarations for code that has an @internal annotation in it’s JSDoc comment.
|
String |
getTarget()
(experimental) Modern browsers support all ES6 features, so ES6 is a good choice.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(TypeScriptCompilerOptions.Builder builder)
TypeScriptCompilerOptions.Builder.public final Boolean getAllowJs()
TypeScriptCompilerOptionsDefault: false
getAllowJs in interface TypeScriptCompilerOptionspublic final Boolean getAllowSyntheticDefaultImports()
TypeScriptCompilerOptionsThis does not affect code emit, just typechecking.
getAllowSyntheticDefaultImports in interface TypeScriptCompilerOptionspublic final Boolean getAlwaysStrict()
TypeScriptCompilerOptionsDefault: true
getAlwaysStrict in interface TypeScriptCompilerOptionspublic final String getBaseUrl()
TypeScriptCompilerOptionsYou can define a root folder where you can do absolute file resolution.
getBaseUrl in interface TypeScriptCompilerOptionspublic final Boolean getDeclaration()
TypeScriptCompilerOptionsgetDeclaration in interface TypeScriptCompilerOptionspublic final String getDeclarationDir()
TypeScriptCompilerOptionsgetDeclarationDir in interface TypeScriptCompilerOptionspublic final Boolean getEmitDecoratorMetadata()
TypeScriptCompilerOptionsDecorators are a language feature which hasn’t yet been fully ratified into the JavaScript specification. This means that the implementation version in TypeScript may differ from the implementation in JavaScript when it it decided by TC39. You can find out more about decorator support in TypeScript in the handbook.
Default: undefined
getEmitDecoratorMetadata in interface TypeScriptCompilerOptionshttps://www.typescriptlang.org/docs/handbook/decorators.htmlpublic final Boolean getEsModuleInterop()
TypeScriptCompilerOptionsDefault: false
getEsModuleInterop in interface TypeScriptCompilerOptionspublic final Boolean getExperimentalDecorators()
TypeScriptCompilerOptionsDefault: true
getExperimentalDecorators in interface TypeScriptCompilerOptionspublic final Boolean getForceConsistentCasingInFileNames()
TypeScriptCompilerOptionsDefault: false
getForceConsistentCasingInFileNames in interface TypeScriptCompilerOptionspublic final Boolean getInlineSourceMap()
TypeScriptCompilerOptionsDefault: true
getInlineSourceMap in interface TypeScriptCompilerOptionspublic final Boolean getInlineSources()
TypeScriptCompilerOptionsDefault: true
getInlineSources in interface TypeScriptCompilerOptionspublic final Boolean getIsolatedModules()
TypeScriptCompilerOptionsDefault: false
getIsolatedModules in interface TypeScriptCompilerOptionspublic final TypeScriptJsxMode getJsx()
TypeScriptCompilerOptionsDefault: undefined
getJsx in interface TypeScriptCompilerOptionspublic final List<String> getLib()
TypeScriptCompilerOptionsES2016, ES5, ES2018).
Default: [ "es2018" ]
getLib in interface TypeScriptCompilerOptionspublic final String getModule()
TypeScriptCompilerOptionsSee https://www.typescriptlang.org/docs/handbook/modules.html#ambient-modules.
Default: "CommonJS"
getModule in interface TypeScriptCompilerOptionspublic final TypeScriptModuleResolution getModuleResolution()
TypeScriptCompilerOptionsEither "Node" for Node.js/io.js style resolution, or "Classic".
Default: "node"
getModuleResolution in interface TypeScriptCompilerOptionspublic final Boolean getNoEmit()
TypeScriptCompilerOptionsDefault: false
getNoEmit in interface TypeScriptCompilerOptionspublic final Boolean getNoEmitOnError()
TypeScriptCompilerOptionsDefault: true
getNoEmitOnError in interface TypeScriptCompilerOptionspublic final Boolean getNoFallthroughCasesInSwitch()
TypeScriptCompilerOptionsEnsures that any non-empty case inside a switch statement includes either break or return. This means you won’t accidentally ship a case fallthrough bug.
Default: true
getNoFallthroughCasesInSwitch in interface TypeScriptCompilerOptionspublic final Boolean getNoImplicitAny()
TypeScriptCompilerOptionsDefault: true
getNoImplicitAny in interface TypeScriptCompilerOptionspublic final Boolean getNoImplicitReturns()
TypeScriptCompilerOptionsDefault: true
getNoImplicitReturns in interface TypeScriptCompilerOptionspublic final Boolean getNoImplicitThis()
TypeScriptCompilerOptionsDefault: true
getNoImplicitThis in interface TypeScriptCompilerOptionspublic final Boolean getNoPropertyAccessFromIndexSignature()
TypeScriptCompilerOptionsDefault: true
getNoPropertyAccessFromIndexSignature in interface TypeScriptCompilerOptionspublic final Boolean getNoUncheckedIndexedAccess()
TypeScriptCompilerOptionsDefault: true
getNoUncheckedIndexedAccess in interface TypeScriptCompilerOptionspublic final Boolean getNoUnusedLocals()
TypeScriptCompilerOptionsDefault: true
getNoUnusedLocals in interface TypeScriptCompilerOptionspublic final Boolean getNoUnusedParameters()
TypeScriptCompilerOptionsDefault: true
getNoUnusedParameters in interface TypeScriptCompilerOptionspublic final String getOutDir()
TypeScriptCompilerOptionsgetOutDir in interface TypeScriptCompilerOptionspublic final Map<String,List<String>> getPaths()
TypeScriptCompilerOptionspaths lets you declare how TypeScript should resolve an import in your require/imports.
getPaths in interface TypeScriptCompilerOptionspublic final Boolean getResolveJsonModule()
TypeScriptCompilerOptionsDefault: true
getResolveJsonModule in interface TypeScriptCompilerOptionspublic final String getRootDir()
TypeScriptCompilerOptions
Only use to control the output directory structure with outDir.
getRootDir in interface TypeScriptCompilerOptionspublic final Boolean getSkipLibCheck()
TypeScriptCompilerOptionsDefault: false
getSkipLibCheck in interface TypeScriptCompilerOptionspublic final Boolean getStrict()
TypeScriptCompilerOptionsTurning this on is equivalent to enabling all of the strict mode family options, which are outlined below. You can then turn off individual strict mode family checks as needed.
Default: true
getStrict in interface TypeScriptCompilerOptionspublic final Boolean getStrictNullChecks()
TypeScriptCompilerOptionsThis can lead to unexpected errors at runtime. When strictNullChecks is true, null and undefined have their own distinct types and you’ll get a type error if you try to use them where a concrete value is expected.
Default: true
getStrictNullChecks in interface TypeScriptCompilerOptionspublic final Boolean getStrictPropertyInitialization()
TypeScriptCompilerOptionsDefault: true
getStrictPropertyInitialization in interface TypeScriptCompilerOptionspublic final Boolean getStripInternal()
TypeScriptCompilerOptionsDefault: true
getStripInternal in interface TypeScriptCompilerOptionspublic final String getTarget()
TypeScriptCompilerOptionsYou might choose to set a lower target if your code is deployed to older environments, or a higher target if your code is guaranteed to run in newer environments.
Default: "ES2018"
getTarget in interface TypeScriptCompilerOptions@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.