Class TypeScriptCompilerOptions.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- io.github.cdklabs.projen.javascript.TypeScriptCompilerOptions.Jsii$Proxy
-
- All Implemented Interfaces:
TypeScriptCompilerOptions,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- TypeScriptCompilerOptions
@Stability(Experimental) @Internal public static final class TypeScriptCompilerOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements TypeScriptCompilerOptions
An implementation forTypeScriptCompilerOptions
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface io.github.cdklabs.projen.javascript.TypeScriptCompilerOptions
TypeScriptCompilerOptions.Builder, TypeScriptCompilerOptions.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(TypeScriptCompilerOptions.Builder builder)Constructor that initializes the object based on literal property values passed by theTypeScriptCompilerOptions.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode$jsii$toJson()booleanequals(Object o)BooleangetAllowArbitraryExtensions()(experimental) Suppress arbitrary extension import errors with the assumption that a bundler will be handling it.BooleangetAllowImportingTsExtensions()(experimental) Allows TypeScript files to import each other with TypeScript-specific extensions (.ts,.mts,.tsx).BooleangetAllowJs()(experimental) Allow JavaScript files to be compiled.BooleangetAllowSyntheticDefaultImports()(experimental) Allow default imports from modules with no default export.BooleangetAllowUnreachableCode()(experimental) Allow Unreachable Code.BooleangetAllowUnusedLabels()(experimental) Allow Unused Labels.BooleangetAlwaysStrict()(experimental) Ensures that your files are parsed in the ECMAScript strict mode, and emit “use strict” for each source file.StringgetBaseUrl()(experimental) Lets you set a base directory to resolve non-absolute module names.BooleangetCheckJs()(experimental) Check JS.List<String>getCustomConditions()(experimental) List of additional conditions that should succeed when TypeScript resolves from anexportsorimportsfield of apackage.json.BooleangetDeclaration()(experimental) To be specified along with the above.StringgetDeclarationDir()(experimental) Offers a way to configure the root directory for where declaration files are emitted.BooleangetDeclarationMap()(experimental) Generates a source map for .d.ts files which map back to the original .ts source file.BooleangetDownlevelIteration()(experimental) Downleveling is TypeScript’s term for transpiling to an older version of JavaScript.BooleangetEmitDeclarationOnly()(experimental) Only emit .d.ts files; do not emit .js files.BooleangetEmitDecoratorMetadata()(experimental) Enables experimental support for decorators, which is in stage 2 of the TC39 standardization process.BooleangetEsModuleInterop()(experimental) Emit __importStar and __importDefault helpers for runtime babel ecosystem compatibility and enable --allowSyntheticDefaultImports for typesystem compatibility.BooleangetExactOptionalPropertyTypes()(experimental) Specifies that optional property types should be interpreted exactly as written, meaning that| undefinedis not added to the type Available with TypeScript 4.4 and newer.BooleangetExperimentalDecorators()(experimental) Enables experimental support for decorators, which is in stage 2 of the TC39 standardization process.BooleangetForceConsistentCasingInFileNames()(experimental) Disallow inconsistently-cased references to the same file.TypeScriptImportsNotUsedAsValuesgetImportsNotUsedAsValues()(experimental) This flag works because you can useimport typeto explicitly create animportstatement which should never be emitted into JavaScript.BooleangetIncremental()(experimental) Tells TypeScript to save information about the project graph from the last compilation to files stored on disk.BooleangetInlineSourceMap()(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.BooleangetInlineSources()(experimental) When set, TypeScript will include the original content of the .ts file as an embedded string in the source map.BooleangetIsolatedModules()(experimental) Perform additional checks to ensure that separate compilation (such as with transpileModule or.TypeScriptJsxModegetJsx()(experimental) Support JSX in .tsx files: "react", "preserve", "react-native" etc.StringgetJsxImportSource()(experimental) Declares the module specifier to be used for importing the jsx and jsxs factory functions when using jsx.List<String>getLib()(experimental) Reference for type definitions / libraries to use (eg.StringgetModule()(experimental) Sets the module system for the program.TypeScriptModuleResolutiongetModuleResolution()(experimental) Determine how modules get resolved.BooleangetNoEmit()(experimental) Do not emit outputs.BooleangetNoEmitOnError()(experimental) Do not emit compiler output files like JavaScript source code, source-maps or declarations if any errors were reported.BooleangetNoFallthroughCasesInSwitch()(experimental) Report errors for fallthrough cases in switch statements.BooleangetNoImplicitAny()(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.BooleangetNoImplicitOverride()(experimental) UsingnoImplicitOverride, you can ensure that sub-classes never go out of sync as they are required to explicitly declare that they are overriding a member using theoverridekeyword.BooleangetNoImplicitReturns()(experimental) When enabled, TypeScript will check all code paths in a function to ensure they return a value.BooleangetNoImplicitThis()(experimental) Raise error on ‘this’ expressions with an implied ‘any’ type.BooleangetNoPropertyAccessFromIndexSignature()(experimental) Raise error on use of the dot syntax to access fields which are not defined.BooleangetNoUncheckedIndexedAccess()(experimental) Raise error when accessing indexes on objects with unknown keys defined in index signatures.BooleangetNoUnusedLocals()(experimental) Report errors on unused local variables.BooleangetNoUnusedParameters()(experimental) Report errors on unused parameters in functions.StringgetOutDir()(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.BooleangetResolveJsonModule()(experimental) Allows importing modules with a ‘.json’ extension, which is a common practice in node projects.BooleangetResolvePackageJsonExports()(experimental) Forces TypeScript to consult theexportsfield ofpackage.jsonfiles if it ever reads from a package innode_modules.BooleangetResolvePackageJsonImports()(experimental) Forces TypeScript to consult theimportsfield ofpackage.jsonwhen performing a lookup that begins with#from a file that has apackage.jsonas an ancestor.StringgetRootDir()(experimental) Specifies the root directory of input files.BooleangetSkipLibCheck()(experimental) Skip type checking of all declaration files (*.d.ts).BooleangetSourceMap()(experimental) Enables the generation of sourcemap files.StringgetSourceRoot()(experimental) Specify the location where a debugger should locate TypeScript files instead of relative source locations.BooleangetStrict()(experimental) The strict flag enables a wide range of type checking behavior that results in stronger guarantees of program correctness.BooleangetStrictNullChecks()(experimental) When strictNullChecks is false, null and undefined are effectively ignored by the language.BooleangetStrictPropertyInitialization()(experimental) When set to true, TypeScript will raise an error when a class property was declared but not set in the constructor.BooleangetStripInternal()(experimental) Do not emit declarations for code that has an@internalannotation in it’s JSDoc comment.StringgetTarget()(experimental) Modern browsers support all ES6 features, so ES6 is a good choice.StringgetTsBuildInfoFile()(experimental) This setting lets you specify a file for storing incremental compilation information as a part of composite projects which enables faster building of larger TypeScript codebases.List<String>getTypes()(experimental) If types is specified, only packages listed will be included in the global scope.BooleangetUseUnknownInCatchVariables()(experimental) Change the type of the variable in a catch clause from any to unknown Available with TypeScript 4.4 and newer.BooleangetVerbatimModuleSyntax()(experimental) Simplifies TypeScript's handling of import/exporttypemodifiers.inthashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(TypeScriptCompilerOptions.Builder builder)
Constructor that initializes the object based on literal property values passed by theTypeScriptCompilerOptions.Builder.
-
-
Method Detail
-
getAllowArbitraryExtensions
public final Boolean getAllowArbitraryExtensions()
Description copied from interface:TypeScriptCompilerOptions(experimental) Suppress arbitrary extension import errors with the assumption that a bundler will be handling it.Default: undefined
- Specified by:
getAllowArbitraryExtensionsin interfaceTypeScriptCompilerOptions- See Also:
- https://www.typescriptlang.org/tsconfig#allowArbitraryExtensions
-
getAllowImportingTsExtensions
public final Boolean getAllowImportingTsExtensions()
Description copied from interface:TypeScriptCompilerOptions(experimental) Allows TypeScript files to import each other with TypeScript-specific extensions (.ts,.mts,.tsx). RequiresnoEmitoremitDeclarationOnly.Default: undefined
- Specified by:
getAllowImportingTsExtensionsin interfaceTypeScriptCompilerOptions
-
getAllowJs
public final Boolean getAllowJs()
Description copied from interface:TypeScriptCompilerOptions(experimental) Allow JavaScript files to be compiled.Default: false
- Specified by:
getAllowJsin interfaceTypeScriptCompilerOptions
-
getAllowSyntheticDefaultImports
public final Boolean getAllowSyntheticDefaultImports()
Description copied from interface:TypeScriptCompilerOptions(experimental) Allow default imports from modules with no default export.This does not affect code emit, just typechecking.
- Specified by:
getAllowSyntheticDefaultImportsin interfaceTypeScriptCompilerOptions
-
getAllowUnreachableCode
public final Boolean getAllowUnreachableCode()
Description copied from interface:TypeScriptCompilerOptions(experimental) Allow Unreachable Code.When:
undefined(default) provide suggestions as warnings to editorstrueunreachable code is ignoredfalseraises compiler errors about unreachable code
These warnings are only about code which is provably unreachable due to the use of JavaScript syntax.
- Specified by:
getAllowUnreachableCodein interfaceTypeScriptCompilerOptions- See Also:
- https://www.typescriptlang.org/tsconfig#allowUnreachableCode
-
getAllowUnusedLabels
public final Boolean getAllowUnusedLabels()
Description copied from interface:TypeScriptCompilerOptions(experimental) Allow Unused Labels.When:
undefined(default) provide suggestions as warnings to editorstrueunused labels are ignoredfalseraises compiler errors about unused labels
Labels are very rare in JavaScript and typically indicate an attempt to write an object literal:
function verifyAge(age: number) { // Forgot 'return' statement if (age > 18) { verified: true; // ^^^^^^^^ Unused label. } }- Specified by:
getAllowUnusedLabelsin interfaceTypeScriptCompilerOptions- See Also:
- https://www.typescriptlang.org/tsconfig#allowUnusedLabels
-
getAlwaysStrict
public final Boolean getAlwaysStrict()
Description copied from interface:TypeScriptCompilerOptions(experimental) Ensures that your files are parsed in the ECMAScript strict mode, and emit “use strict” for each source file.Default: true
- Specified by:
getAlwaysStrictin interfaceTypeScriptCompilerOptions
-
getBaseUrl
public final String getBaseUrl()
Description copied from interface:TypeScriptCompilerOptions(experimental) Lets you set a base directory to resolve non-absolute module names.You can define a root folder where you can do absolute file resolution.
- Specified by:
getBaseUrlin interfaceTypeScriptCompilerOptions
-
getCheckJs
public final Boolean getCheckJs()
Description copied from interface:TypeScriptCompilerOptions(experimental) Check JS.Works in tandem with allowJs. When checkJs is enabled then errors are reported in JavaScript files. This is the equivalent of including //
- Specified by:
getCheckJsin interfaceTypeScriptCompilerOptions- See Also:
- https://www.typescriptlang.org/tsconfig#checkJs
-
getCustomConditions
public final List<String> getCustomConditions()
Description copied from interface:TypeScriptCompilerOptions(experimental) List of additional conditions that should succeed when TypeScript resolves from anexportsorimportsfield of apackage.json.Default: undefined
- Specified by:
getCustomConditionsin interfaceTypeScriptCompilerOptions- See Also:
- https://www.typescriptlang.org/tsconfig#customConditions
-
getDeclaration
public final Boolean getDeclaration()
Description copied from interface:TypeScriptCompilerOptions(experimental) To be specified along with the above.- Specified by:
getDeclarationin interfaceTypeScriptCompilerOptions
-
getDeclarationDir
public final String getDeclarationDir()
Description copied from interface:TypeScriptCompilerOptions(experimental) Offers a way to configure the root directory for where declaration files are emitted.- Specified by:
getDeclarationDirin interfaceTypeScriptCompilerOptions
-
getDeclarationMap
public final Boolean getDeclarationMap()
Description copied from interface:TypeScriptCompilerOptions(experimental) Generates a source map for .d.ts files which map back to the original .ts source file. This will allow editors such as VS Code to go to the original .ts file when using features like Go to Definition.- Specified by:
getDeclarationMapin interfaceTypeScriptCompilerOptions- See Also:
- {@link https://www.typescriptlang.org/tsconfig#declarationMap}
-
getDownlevelIteration
public final Boolean getDownlevelIteration()
Description copied from interface:TypeScriptCompilerOptions(experimental) Downleveling is TypeScript’s term for transpiling to an older version of JavaScript.This flag is to enable support for a more accurate implementation of how modern JavaScript iterates through new concepts in older JavaScript runtimes.
ECMAScript 6 added several new iteration primitives: the for / of loop (for (el of arr)), Array spread ([a, ...b]), argument spread (fn(...args)), and Symbol.iterator. downlevelIteration allows for these iteration primitives to be used more accurately in ES5 environments if a Symbol.iterator implementation is present.
- Specified by:
getDownlevelIterationin interfaceTypeScriptCompilerOptions
-
getEmitDeclarationOnly
public final Boolean getEmitDeclarationOnly()
Description copied from interface:TypeScriptCompilerOptions(experimental) Only emit .d.ts files; do not emit .js files.Default: false
- Specified by:
getEmitDeclarationOnlyin interfaceTypeScriptCompilerOptions
-
getEmitDecoratorMetadata
public final Boolean getEmitDecoratorMetadata()
Description copied from interface:TypeScriptCompilerOptions(experimental) Enables experimental support for decorators, which is in stage 2 of the TC39 standardization process.Decorators 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
- Specified by:
getEmitDecoratorMetadatain interfaceTypeScriptCompilerOptions- See Also:
- https://www.typescriptlang.org/docs/handbook/decorators.html
-
getEsModuleInterop
public final Boolean getEsModuleInterop()
Description copied from interface:TypeScriptCompilerOptions(experimental) Emit __importStar and __importDefault helpers for runtime babel ecosystem compatibility and enable --allowSyntheticDefaultImports for typesystem compatibility.Default: false
- Specified by:
getEsModuleInteropin interfaceTypeScriptCompilerOptions
-
getExactOptionalPropertyTypes
public final Boolean getExactOptionalPropertyTypes()
Description copied from interface:TypeScriptCompilerOptions(experimental) Specifies that optional property types should be interpreted exactly as written, meaning that| undefinedis not added to the type Available with TypeScript 4.4 and newer.Default: false
- Specified by:
getExactOptionalPropertyTypesin interfaceTypeScriptCompilerOptions
-
getExperimentalDecorators
public final Boolean getExperimentalDecorators()
Description copied from interface:TypeScriptCompilerOptions(experimental) Enables experimental support for decorators, which is in stage 2 of the TC39 standardization process.Default: true
- Specified by:
getExperimentalDecoratorsin interfaceTypeScriptCompilerOptions
-
getForceConsistentCasingInFileNames
public final Boolean getForceConsistentCasingInFileNames()
Description copied from interface:TypeScriptCompilerOptions(experimental) Disallow inconsistently-cased references to the same file.Default: false
- Specified by:
getForceConsistentCasingInFileNamesin interfaceTypeScriptCompilerOptions
-
getImportsNotUsedAsValues
public final TypeScriptImportsNotUsedAsValues getImportsNotUsedAsValues()
Description copied from interface:TypeScriptCompilerOptions(experimental) This flag works because you can useimport typeto explicitly create animportstatement which should never be emitted into JavaScript.Default: "remove"
- Specified by:
getImportsNotUsedAsValuesin interfaceTypeScriptCompilerOptions- See Also:
- https://www.typescriptlang.org/tsconfig#importsNotUsedAsValues
-
getIncremental
public final Boolean getIncremental()
Description copied from interface:TypeScriptCompilerOptions(experimental) Tells TypeScript to save information about the project graph from the last compilation to files stored on disk.This creates a series of .tsbuildinfo files in the same folder as your compilation output. They are not used by your JavaScript at runtime and can be safely deleted. You can read more about the flag in the 3.4 release notes.
- Specified by:
getIncrementalin interfaceTypeScriptCompilerOptions- See Also:
- https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-4.html#faster-subsequent-builds-with-the---incremental-flag To control which folders you want to the files to be built to, use the config option tsBuildInfoFile.
-
getInlineSourceMap
public final Boolean getInlineSourceMap()
Description copied from interface:TypeScriptCompilerOptions(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.Default: true
- Specified by:
getInlineSourceMapin interfaceTypeScriptCompilerOptions
-
getInlineSources
public final Boolean getInlineSources()
Description copied from interface:TypeScriptCompilerOptions(experimental) When set, TypeScript will include the original content of the .ts file as an embedded string in the source map. This is often useful in the same cases as inlineSourceMap.Default: true
- Specified by:
getInlineSourcesin interfaceTypeScriptCompilerOptions
-
getIsolatedModules
public final Boolean getIsolatedModules()
Description copied from interface:TypeScriptCompilerOptions(experimental) Perform additional checks to ensure that separate compilation (such as with transpileModule or.Default: false
- Specified by:
getIsolatedModulesin interfaceTypeScriptCompilerOptions
-
getJsx
public final TypeScriptJsxMode getJsx()
Description copied from interface:TypeScriptCompilerOptions(experimental) Support JSX in .tsx files: "react", "preserve", "react-native" etc.Default: undefined
- Specified by:
getJsxin interfaceTypeScriptCompilerOptions
-
getJsxImportSource
public final String getJsxImportSource()
Description copied from interface:TypeScriptCompilerOptions(experimental) Declares the module specifier to be used for importing the jsx and jsxs factory functions when using jsx.Default: undefined
- Specified by:
getJsxImportSourcein interfaceTypeScriptCompilerOptions
-
getLib
public final List<String> getLib()
Description copied from interface:TypeScriptCompilerOptions(experimental) Reference for type definitions / libraries to use (eg.ES2016, ES5, ES2018).
Default: [ "es2018" ]
- Specified by:
getLibin interfaceTypeScriptCompilerOptions
-
getModule
public final String getModule()
Description copied from interface:TypeScriptCompilerOptions(experimental) Sets the module system for the program.See https://www.typescriptlang.org/docs/handbook/modules.html#ambient-modules.
Default: "CommonJS"
- Specified by:
getModulein interfaceTypeScriptCompilerOptions
-
getModuleResolution
public final TypeScriptModuleResolution getModuleResolution()
Description copied from interface:TypeScriptCompilerOptions(experimental) Determine how modules get resolved.Either "Node" for Node.js/io.js style resolution, or "Classic".
Default: "node"
- Specified by:
getModuleResolutionin interfaceTypeScriptCompilerOptions
-
getNoEmit
public final Boolean getNoEmit()
Description copied from interface:TypeScriptCompilerOptions(experimental) Do not emit outputs.Default: false
- Specified by:
getNoEmitin interfaceTypeScriptCompilerOptions
-
getNoEmitOnError
public final Boolean getNoEmitOnError()
Description copied from interface:TypeScriptCompilerOptions(experimental) Do not emit compiler output files like JavaScript source code, source-maps or declarations if any errors were reported.Default: true
- Specified by:
getNoEmitOnErrorin interfaceTypeScriptCompilerOptions
-
getNoFallthroughCasesInSwitch
public final Boolean getNoFallthroughCasesInSwitch()
Description copied from interface:TypeScriptCompilerOptions(experimental) Report errors for fallthrough cases in switch statements.Ensures 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
- Specified by:
getNoFallthroughCasesInSwitchin interfaceTypeScriptCompilerOptions
-
getNoImplicitAny
public final Boolean getNoImplicitAny()
Description copied from interface:TypeScriptCompilerOptions(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.Default: true
- Specified by:
getNoImplicitAnyin interfaceTypeScriptCompilerOptions
-
getNoImplicitOverride
public final Boolean getNoImplicitOverride()
Description copied from interface:TypeScriptCompilerOptions(experimental) UsingnoImplicitOverride, you can ensure that sub-classes never go out of sync as they are required to explicitly declare that they are overriding a member using theoverridekeyword.This also improves readability of the programmer's intent.
Available with TypeScript 4.3 and newer.
Default: false
- Specified by:
getNoImplicitOverridein interfaceTypeScriptCompilerOptions
-
getNoImplicitReturns
public final Boolean getNoImplicitReturns()
Description copied from interface:TypeScriptCompilerOptions(experimental) When enabled, TypeScript will check all code paths in a function to ensure they return a value.Default: true
- Specified by:
getNoImplicitReturnsin interfaceTypeScriptCompilerOptions
-
getNoImplicitThis
public final Boolean getNoImplicitThis()
Description copied from interface:TypeScriptCompilerOptions(experimental) Raise error on ‘this’ expressions with an implied ‘any’ type.Default: true
- Specified by:
getNoImplicitThisin interfaceTypeScriptCompilerOptions
-
getNoPropertyAccessFromIndexSignature
public final Boolean getNoPropertyAccessFromIndexSignature()
Description copied from interface:TypeScriptCompilerOptions(experimental) Raise error on use of the dot syntax to access fields which are not defined.Default: true
- Specified by:
getNoPropertyAccessFromIndexSignaturein interfaceTypeScriptCompilerOptions
-
getNoUncheckedIndexedAccess
public final Boolean getNoUncheckedIndexedAccess()
Description copied from interface:TypeScriptCompilerOptions(experimental) Raise error when accessing indexes on objects with unknown keys defined in index signatures.Default: true
- Specified by:
getNoUncheckedIndexedAccessin interfaceTypeScriptCompilerOptions
-
getNoUnusedLocals
public final Boolean getNoUnusedLocals()
Description copied from interface:TypeScriptCompilerOptions(experimental) Report errors on unused local variables.Default: true
- Specified by:
getNoUnusedLocalsin interfaceTypeScriptCompilerOptions
-
getNoUnusedParameters
public final Boolean getNoUnusedParameters()
Description copied from interface:TypeScriptCompilerOptions(experimental) Report errors on unused parameters in functions.Default: true
- Specified by:
getNoUnusedParametersin interfaceTypeScriptCompilerOptions
-
getOutDir
public final String getOutDir()
Description copied from interface:TypeScriptCompilerOptions(experimental) Output directory for the compiled files.- Specified by:
getOutDirin interfaceTypeScriptCompilerOptions
-
getPaths
public final Map<String,List<String>> getPaths()
Description copied from interface:TypeScriptCompilerOptions(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.paths lets you declare how TypeScript should resolve an import in your require/imports.
- Specified by:
getPathsin interfaceTypeScriptCompilerOptions
-
getResolveJsonModule
public final Boolean getResolveJsonModule()
Description copied from interface:TypeScriptCompilerOptions(experimental) Allows importing modules with a ‘.json’ extension, which is a common practice in node projects. This includes generating a type for the import based on the static JSON shape.Default: true
- Specified by:
getResolveJsonModulein interfaceTypeScriptCompilerOptions
-
getResolvePackageJsonExports
public final Boolean getResolvePackageJsonExports()
Description copied from interface:TypeScriptCompilerOptions(experimental) Forces TypeScript to consult theexportsfield ofpackage.jsonfiles if it ever reads from a package innode_modules.Default: true
- Specified by:
getResolvePackageJsonExportsin interfaceTypeScriptCompilerOptions
-
getResolvePackageJsonImports
public final Boolean getResolvePackageJsonImports()
Description copied from interface:TypeScriptCompilerOptions(experimental) Forces TypeScript to consult theimportsfield ofpackage.jsonwhen performing a lookup that begins with#from a file that has apackage.jsonas an ancestor.Default: undefined
- Specified by:
getResolvePackageJsonImportsin interfaceTypeScriptCompilerOptions
-
getRootDir
public final String getRootDir()
Description copied from interface:TypeScriptCompilerOptions(experimental) Specifies the root directory of input files.Only use to control the output directory structure with
outDir.- Specified by:
getRootDirin interfaceTypeScriptCompilerOptions
-
getSkipLibCheck
public final Boolean getSkipLibCheck()
Description copied from interface:TypeScriptCompilerOptions(experimental) Skip type checking of all declaration files (*.d.ts).Default: false
- Specified by:
getSkipLibCheckin interfaceTypeScriptCompilerOptions
-
getSourceMap
public final Boolean getSourceMap()
Description copied from interface:TypeScriptCompilerOptions(experimental) Enables the generation of sourcemap files.Default: undefined
- Specified by:
getSourceMapin interfaceTypeScriptCompilerOptions
-
getSourceRoot
public final String getSourceRoot()
Description copied from interface:TypeScriptCompilerOptions(experimental) Specify the location where a debugger should locate TypeScript files instead of relative source locations.Default: undefined
- Specified by:
getSourceRootin interfaceTypeScriptCompilerOptions
-
getStrict
public final Boolean getStrict()
Description copied from interface:TypeScriptCompilerOptions(experimental) The strict flag enables a wide range of type checking behavior that results in stronger guarantees of program correctness.Turning 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
- Specified by:
getStrictin interfaceTypeScriptCompilerOptions
-
getStrictNullChecks
public final Boolean getStrictNullChecks()
Description copied from interface:TypeScriptCompilerOptions(experimental) When strictNullChecks is false, null and undefined are effectively ignored by the language.This 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
- Specified by:
getStrictNullChecksin interfaceTypeScriptCompilerOptions
-
getStrictPropertyInitialization
public final Boolean getStrictPropertyInitialization()
Description copied from interface:TypeScriptCompilerOptions(experimental) When set to true, TypeScript will raise an error when a class property was declared but not set in the constructor.Default: true
- Specified by:
getStrictPropertyInitializationin interfaceTypeScriptCompilerOptions
-
getStripInternal
public final Boolean getStripInternal()
Description copied from interface:TypeScriptCompilerOptions(experimental) Do not emit declarations for code that has an@internalannotation in it’s JSDoc comment.Default: true
- Specified by:
getStripInternalin interfaceTypeScriptCompilerOptions
-
getTarget
public final String getTarget()
Description copied from interface:TypeScriptCompilerOptions(experimental) Modern browsers support all ES6 features, so ES6 is a good choice.You 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"
- Specified by:
getTargetin interfaceTypeScriptCompilerOptions
-
getTsBuildInfoFile
public final String getTsBuildInfoFile()
Description copied from interface:TypeScriptCompilerOptions(experimental) This setting lets you specify a file for storing incremental compilation information as a part of composite projects which enables faster building of larger TypeScript codebases.You can read more about composite projects in the handbook.
- Specified by:
getTsBuildInfoFilein interfaceTypeScriptCompilerOptions
-
getTypes
public final List<String> getTypes()
Description copied from interface:TypeScriptCompilerOptions(experimental) If types is specified, only packages listed will be included in the global scope.- Specified by:
getTypesin interfaceTypeScriptCompilerOptions- See Also:
- {@link https://www.typescriptlang.org/tsconfig#types}
-
getUseUnknownInCatchVariables
public final Boolean getUseUnknownInCatchVariables()
Description copied from interface:TypeScriptCompilerOptions(experimental) Change the type of the variable in a catch clause from any to unknown Available with TypeScript 4.4 and newer.Default: true
- Specified by:
getUseUnknownInCatchVariablesin interfaceTypeScriptCompilerOptions
-
getVerbatimModuleSyntax
public final Boolean getVerbatimModuleSyntax()
Description copied from interface:TypeScriptCompilerOptions(experimental) Simplifies TypeScript's handling of import/exporttypemodifiers.Default: undefined
- Specified by:
getVerbatimModuleSyntaxin interfaceTypeScriptCompilerOptions- See Also:
- https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-