UNPKG

471 BTypeScriptView Raw
1import type { Node, VisitResult } from './index';
2export type NodeTransformer = (node: Node) => VisitResult<Node | undefined>;
3export type StringTransformer = (node: Node) => string | null;
4export type AttributeOperatorType = 'regexp' | 'literal' | 'type';
5export type AttributeOperator = (obj: unknown, value: unknown, type: AttributeOperatorType) => boolean;
6export type Properties = {
7 kindName: string;
8 name?: string;
9 text: string;
10 value?: unknown;
11};