Skip to content

Commit

Permalink
add a better typed to the unbound indexer
Browse files Browse the repository at this point in the history
  • Loading branch information
juank1809 committed Aug 8, 2022
1 parent 4957421 commit 99587fb
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions packages/types/src/parser-options.ts
Expand Up @@ -25,26 +25,6 @@ type EcmaVersion =

type SourceType = 'script' | 'module';

type ecmaFeatures =
| {
globalReturn?: boolean | undefined;
jsx?: boolean | undefined;
}
| undefined;

type ParserOptionsValue =
| ecmaFeatures
| EcmaVersion
| Program
| SourceType
| boolean
| string
| string[]
| (string | RegExp)[]
| null
| undefined
| DebugLevel;

interface ParserOptions {
ecmaFeatures?: {
globalReturn?: boolean;
Expand Down Expand Up @@ -78,7 +58,7 @@ interface ParserOptions {
tsconfigRootDir?: string;
warnOnUnsupportedTypeScriptVersion?: boolean;
moduleResolver?: string;
[additionalProperties: string]: ParserOptionsValue | undefined;
[additionalProperties: string]: unknown
}

export { DebugLevel, EcmaVersion, ParserOptions, SourceType };

0 comments on commit 99587fb

Please sign in to comment.