UNPKG

@phenomnomnominal/tsquery

Version:

Query TypeScript ASTs with the esquery API!

12 lines (11 loc) 471 B
import type { Node, VisitResult } from './index'; export type NodeTransformer = (node: Node) => VisitResult<Node | undefined>; export type StringTransformer = (node: Node) => string | null; export type AttributeOperatorType = 'regexp' | 'literal' | 'type'; export type AttributeOperator = (obj: unknown, value: unknown, type: AttributeOperatorType) => boolean; export type Properties = { kindName: string; name?: string; text: string; value?: unknown; };