estree-toolkit
Version:
Traverser, scope tracker, and more tools for working with ESTree AST
18 lines (17 loc) • 662 B
TypeScript
import * as ESTree from 'estree-jsx';
export type AliasMap = {
Function: ESTree.Function;
Statement: ESTree.Statement;
Declaration: ESTree.Declaration;
Expression: ESTree.Expression;
Pattern: ESTree.Pattern;
Class: ESTree.Class;
ExportDeclaration: ESTree.ExportAllDeclaration | ESTree.ExportDefaultDeclaration | ESTree.ExportNamedDeclaration;
Loop: ESTree.ForStatement | ESTree.ForInStatement | ESTree.ForOfStatement | ESTree.WhileStatement | ESTree.DoWhileStatement;
ModuleDeclaration: ESTree.ModuleDeclaration;
};
export declare const aliases: {
[K in keyof AliasMap]: {
[X in AliasMap[K]['type']]: 0;
};
};