UNPKG

@workday/canvas-kit-docs

Version:

Documentation components of Canvas Kit components

14 lines 542 B
import ts from 'typescript'; import { guards, kindsMap } from './traversals'; type KindMap = typeof kindsMap; type Guards = typeof guards; export interface API extends KindMap, Guards { (node: ts.Node): { find<K extends keyof KindMap>(kind: K, predicate?: (node: KindMap[K]) => boolean): KindMap[K][]; }; getKindNameFromNode(node: ts.Node): string; } export declare function find(node: ts.Node, predicate: (node: ts.Node) => boolean): ts.Node[]; declare let t: API; export default t; //# sourceMappingURL=traverse.d.ts.map