Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Commit

Permalink
types: Support newer ES2022 and ESNext types.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Mar 1, 2022
1 parent 7e9040e commit 4925bb1
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion packages/driver-typescript/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,26 @@ export type TargetSetting =
| 'es2019'
| 'es2020'
| 'es2021'
| 'es2022'
| 'esnext'
| 'json'
| 'latest';

export type ModuleSetting =
| 'amd'
| 'commonjs'
| 'es6'
| 'es2015'
| 'es2020'
| 'es2022'
| 'esnext'
| 'node12'
| 'nodenext'
| 'none'
| 'system'
| 'umd';

export type ModuleResolutionSetting = 'classic' | 'node';
export type ModuleResolutionSetting = 'classic' | 'node' | 'node12' | 'nodenext';

// https://github.com/microsoft/TypeScript/tree/master/lib
export type LibSetting =
Expand Down Expand Up @@ -62,6 +67,7 @@ export type LibSetting =
| 'es2018.promise'
| 'es2018.regexp'
| 'es2018'
| 'es2019.array'
| 'es2019.full'
| 'es2019.object'
| 'es2019.string'
Expand All @@ -75,7 +81,13 @@ export type LibSetting =
| 'es2020.string'
| 'es2020.symbol.wellknown'
| 'es2020'
| 'es2021.promise'
| 'es2021.string'
| 'es2021.weakref'
| 'es2021'
| 'es2022'
| 'esnext.array'
| 'esnext.asynciterable'
| 'esnext.full'
| 'esnext.intl'
| 'esnext.promise'
Expand Down Expand Up @@ -121,6 +133,7 @@ export interface CompilerOptions {
emitDeclarationOnly?: boolean;
emitDecoratorMetadata?: boolean;
esModuleInterop?: boolean;
exactOptionalPropertyTypes?: boolean;
experimentalDecorators?: boolean;
forceConsistentCasingInFileNames?: boolean;
importHelpers?: boolean;
Expand All @@ -147,6 +160,7 @@ export interface CompilerOptions {
noErrorTruncation?: boolean;
noFallthroughCasesInSwitch?: boolean;
noImplicitAny?: boolean;
noImplicitOverride?: boolean;
noImplicitReturns?: boolean;
noImplicitThis?: boolean;
noImplicitUseStrict?: boolean;
Expand All @@ -162,6 +176,7 @@ export interface CompilerOptions {
paths?: Record<string, string[]>;
preserveConstEnums?: boolean;
preserveSymlinks?: boolean;
preserveValueImports?: boolean;
pretty?: boolean;
project?: string;
reactNamespace?: string;
Expand All @@ -187,6 +202,7 @@ export interface CompilerOptions {
typeRoots?: string[];
types?: string[];
useDefineForClassFields?: boolean;
useUnknownInCatchVariables?: boolean;
}

export interface TypeScriptConfig {
Expand Down Expand Up @@ -229,6 +245,7 @@ export interface TypeScriptArgs {
emitDeclarationOnly?: boolean;
emitDecoratorMetadata?: boolean;
esModuleInterop?: boolean;
exactOptionalPropertyTypes?: boolean;
experimentalDecorators?: boolean;
extendedDiagnostics?: boolean;
forceConsistentCasingInFileNames?: boolean;
Expand Down Expand Up @@ -266,6 +283,7 @@ export interface TypeScriptArgs {
noErrorTruncation?: boolean;
noFallthroughCasesInSwitch?: boolean;
noImplicitAny?: boolean;
noImplicitOverride?: boolean;
noImplicitReturns?: boolean;
noImplicitThis?: boolean;
noImplicitUseStrict?: boolean;
Expand All @@ -283,6 +301,7 @@ export interface TypeScriptArgs {
plugins?: string[];
preserveConstEnums?: boolean;
preserveSymlinks?: boolean;
preserveValueImports?: boolean;
preserveWatchOutput?: boolean;
pretty?: boolean;
project?: string;
Expand Down Expand Up @@ -311,6 +330,7 @@ export interface TypeScriptArgs {
typeRoots?: string[];
types?: string[];
useDefineForClassFields?: boolean;
useUnknownInCatchVariables?: boolean;
v?: boolean;
version?: boolean;
w?: boolean;
Expand Down

0 comments on commit 4925bb1

Please sign in to comment.