We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f74f08 commit e6f5640Copy full SHA for e6f5640
src/transform.ts
@@ -277,6 +277,11 @@ export const transform = {
277
path.replaceWith(t.tsArrayType(elementType));
278
},
279
280
+ SymbolTypeAnnotation: {
281
+ exit(path) {
282
+ path.replaceWith(t.tsSymbolKeyword());
283
+ },
284
285
TupleTypeAnnotation: {
286
exit(path) {
287
const { types } = path.node;
test/fixtures/convert/basic-types/symbol01/flow.js
@@ -0,0 +1 @@
1
+let a: symbol;
test/fixtures/convert/basic-types/symbol01/ts.js
test/fixtures/convert/intersection-union/union02/flow.js
+let obj: string | symbol;
test/fixtures/convert/intersection-union/union02/ts.js
0 commit comments