Files
Ubuntu 32b43f85bd a
2026-07-03 16:58:28 +08:00

35 lines
679 B
TypeScript

import { Node } from "unist-builder";
export interface UnistNode extends Node {
type: string;
name?: string;
tagName?: string;
value?: string;
attributes?: {
name: string;
value: unknown;
type?: string;
}[];
properties?: {
__src__?: string;
__npmCommand__?: string;
__yarnCommand__?: string;
__pnpmCommand__?: string;
__bunCommand__?: string;
className?: string[];
};
children?: UnistNode[];
}
export interface UnistTree extends Node {
type: "root";
children: UnistNode[];
}
export interface NpmCommands {
__npmCommand__?: string;
__yarnCommand__?: string;
__pnpmCommand__?: string;
__bunCommand__?: string;
}