Files
svgl/src/types/unist.ts
T

19 lines
322 B
TypeScript

export interface UnistNode {
type: string;
name?: string;
tagName?: string;
value?: string;
properties?: Record<string, unknown>;
attributes?: {
name: string;
value: unknown;
type?: string;
}[];
children?: UnistNode[];
}
export interface UnistTree {
type: string;
children: UnistNode[];
}