UNPKG

1.34 kBTypeScriptView Raw
1import * as ASTv1 from './api';
2declare const visitorKeys: {
3 Program: ["body"];
4 Template: ["body"];
5 Block: ["body"];
6 MustacheStatement: ["path", "params", "hash"];
7 BlockStatement: ["path", "params", "hash", "program", "inverse"];
8 ElementModifierStatement: ["path", "params", "hash"];
9 PartialStatement: ["name", "params", "hash"];
10 CommentStatement: [];
11 MustacheCommentStatement: [];
12 ElementNode: ["attributes", "modifiers", "children", "comments"];
13 AttrNode: ["value"];
14 TextNode: [];
15 ConcatStatement: ["parts"];
16 SubExpression: ["path", "params", "hash"];
17 PathExpression: [];
18 PathHead: [];
19 StringLiteral: [];
20 BooleanLiteral: [];
21 NumberLiteral: [];
22 NullLiteral: [];
23 UndefinedLiteral: [];
24 Hash: ["pairs"];
25 HashPair: ["value"];
26 NamedBlock: ["attributes", "modifiers", "children", "comments"];
27 SimpleElement: ["attributes", "modifiers", "children", "comments"];
28 Component: ["head", "attributes", "modifiers", "children", "comments"];
29};
30declare type VisitorKeysMap = typeof visitorKeys;
31export declare type VisitorKeys = {
32 [P in keyof VisitorKeysMap]: VisitorKeysMap[P][number];
33};
34export declare type VisitorKey<N extends ASTv1.Node> = VisitorKeys[N['type']] & keyof N;
35export default visitorKeys;
36//# sourceMappingURL=visitor-keys.d.ts.map
\No newline at end of file