Skip to content

Commit

Permalink
TsConfigJson: Sync with latest TypeScript version (#529)
Browse files Browse the repository at this point in the history
  • Loading branch information
Septh committed Dec 25, 2022
1 parent e5a3a57 commit 9f04028
Showing 1 changed file with 41 additions and 1 deletion.
42 changes: 41 additions & 1 deletion source/tsconfig-json.d.ts
Expand Up @@ -221,6 +221,21 @@ declare namespace TsConfigJson {
| 'useFsEventsOnParentDirectory'
| 'fixedChunkSizePolling';

export type ModuleResolution =
| 'classic'
| 'node'
| 'node16'
| 'nodenext'
// Pascal-cased alternatives
| 'Classic'
| 'Node'
| 'Node16'
| 'NodeNext';

export type ModuleDetection =
| 'auto'
| 'legacy'
| 'force';
}

export type CompilerOptions = {
Expand Down Expand Up @@ -395,7 +410,7 @@ declare namespace TsConfigJson {
@default ['AMD', 'System', 'ES6'].includes(module) ? 'classic' : 'node'
*/
moduleResolution?: 'classic' | 'node';
moduleResolution?: CompilerOptions.ModuleResolution;

/**
Specifies the end of line sequence to be used when emitting files: 'crlf' (Windows) or 'lf' (Unix).
Expand Down Expand Up @@ -997,6 +1012,31 @@ declare namespace TsConfigJson {
@default false
*/
explainFiles?: boolean;

/**
Preserve unused imported values in the JavaScript output that would otherwise be removed.
Requires TypeScript version 4.7 or later.
@default true
*/
preserveValueImports?: boolean;

/**
List of file name suffixes to search when resolving a module.
Requires TypeScript version 4.5 or later.
*/
moduleSuffixes?: string[];

/**
Control what method is used to detect module-format JS files.
Requires TypeScript version 4.7 or later.
@default 'auto'
*/
moduleDetection?: CompilerOptions.ModuleDetection;
};

namespace WatchOptions {
Expand Down

0 comments on commit 9f04028

Please sign in to comment.