Files
med-notes/.pnpm-store/v10/files/ff/f27e23d557f483e891471c5055b18a2e2a19050ed736702db5c5bbe9a6833949bc09758f93300b3266b6da4b5ea75b6e994e229276b0f5c7baf691784a910e
2025-05-09 05:30:08 +02:00

28 lines
762 B
Plaintext

type VisitorKeys$1 = {
readonly [type: string]: ReadonlyArray<string>;
};
/**
* @typedef {{ readonly [type: string]: ReadonlyArray<string> }} VisitorKeys
*/
/**
* @type {VisitorKeys}
*/
declare const KEYS: VisitorKeys$1;
/**
* Get visitor keys of a given node.
* @param {Object} node The AST node to get keys.
* @returns {readonly string[]} Visitor keys of the node.
*/
declare function getKeys(node: Object): readonly string[];
/**
* Make the union set with `KEYS` and given keys.
* @param {VisitorKeys} additionalKeys The additional keys.
* @returns {VisitorKeys} The union set.
*/
declare function unionWith(additionalKeys: VisitorKeys): VisitorKeys;
type VisitorKeys = VisitorKeys$1;
export { KEYS, type VisitorKeys, getKeys, unionWith };