Comparing version 1.3.2 to 1.3.3
{ | ||
"name": "esrap", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "Parse in reverse", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -559,2 +559,8 @@ /** @import { TSESTree } from '@typescript-eslint/types' */ | ||
break; | ||
case 'TSIndexedAccessType': | ||
handle_type_annotation(node.objectType, state); | ||
state.commands.push('['); | ||
handle_type_annotation(node.indexType, state); | ||
state.commands.push(']'); | ||
break; | ||
default: | ||
@@ -938,3 +944,8 @@ throw new Error(`Not implemented type annotation ${node.type}`); | ||
ExportAllDeclaration(node, state) { | ||
state.commands.push('export * from '); | ||
state.commands.push('export * '); | ||
if (node.exported) { | ||
state.commands.push('as '); | ||
handle(node.exported, state); | ||
} | ||
state.commands.push(' from '); | ||
handle(node.source, state); | ||
@@ -941,0 +952,0 @@ state.commands.push(';'); |
49051
1532