Skip to content

Commit

Permalink
fix #1816: add "preserveValueImports" to ts types
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed Dec 1, 2021
1 parent 3e294e3 commit 56da27e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/shared/types.ts
Expand Up @@ -232,6 +232,7 @@ export interface TransformOptions extends CommonOptions {
jsxFragmentFactory?: string,
useDefineForClassFields?: boolean,
importsNotUsedAsValues?: 'remove' | 'preserve' | 'error',
preserveValueImports?: boolean,
},
};

Expand Down
1 change: 1 addition & 0 deletions scripts/ts-type-tests.js
Expand Up @@ -113,6 +113,7 @@ const tests = {
jsxFragmentFactory: '',
useDefineForClassFields: true,
importsNotUsedAsValues: 'preserve',
preserveValueImports: true,
},
},
sourcefile: '',
Expand Down

0 comments on commit 56da27e

Please sign in to comment.