UNPKG

608 BTypeScriptView Raw
1/**
2 * Get visitor keys of a given node.
3 * @param {object} node The AST node to get keys.
4 * @returns {readonly string[]} Visitor keys of the node.
5 */
6export function getKeys(node: object): readonly string[];
7/**
8 * Make the union set with `KEYS` and given keys.
9 * @param {VisitorKeys} additionalKeys The additional keys.
10 * @returns {VisitorKeys} The union set.
11 */
12export function unionWith(additionalKeys: VisitorKeys): VisitorKeys;
13export { KEYS };
14export type VisitorKeys = {
15 readonly [type: string]: readonly string[];
16};
17import KEYS from "./visitor-keys.js";
18//# sourceMappingURL=index.d.ts.map
\No newline at end of file