8 lines
271 B
TypeScript
8 lines
271 B
TypeScript
|
export interface walkable {
|
||
|
walk(cb: (entry: {
|
||
|
node: Array<unknown> | unknown;
|
||
|
parent: unknown;
|
||
|
}, index: number | string) => boolean | void): false | undefined;
|
||
|
}
|
||
|
export declare function gatherNodeAncestry(node: walkable): Map<unknown, unknown>;
|