Skip to content

Commit

Permalink
fix(visitor-keys): add missing import assertion keys (#4178)
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Nov 18, 2021
1 parent 84b4a8c commit 9c38b7f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/visitor-keys/src/visitor-keys.ts
Expand Up @@ -19,9 +19,6 @@ const additionalKeys: AdditionalKeys = {
// Stage 3 Import Assertions
ImportAttribute: ['key', 'value'],

// ES2020
ImportExpression: ['source'],

// Additional Properties.
ArrayPattern: ['decorators', 'elements', 'typeAnnotation'],
ArrowFunctionExpression: ['typeParameters', 'params', 'returnType', 'body'],
Expand All @@ -45,9 +42,13 @@ const additionalKeys: AdditionalKeys = {
'implements',
'body',
],
ExportAllDeclaration: ['exported', 'source', 'assertions'],
ExportNamedDeclaration: ['declaration', 'specifiers', 'source', 'assertions'],
FunctionDeclaration: ['id', 'typeParameters', 'params', 'returnType', 'body'],
FunctionExpression: ['id', 'typeParameters', 'params', 'returnType', 'body'],
Identifier: ['decorators', 'typeAnnotation'],
ImportDeclaration: ['specifiers', 'source', 'assertions'],
ImportExpression: ['source', 'attributes'],
MethodDefinition: ['decorators', 'key', 'value'],
NewExpression: ['callee', 'typeParameters', 'arguments'],
ObjectPattern: ['decorators', 'properties', 'typeAnnotation'],
Expand Down

0 comments on commit 9c38b7f

Please sign in to comment.