返回 presentation-ai
1 "use client";
2
3 import {
4 type DataFieldType,
5 type DataItem,
6 type ParsedDataBlock,
7 } from "@/components/notebook/presentation/editor/utils/infographic-utils";
8
9 export type EditableInfographicItem = DataItem & {
10 editorId: string;
11 children?: EditableInfographicItem[];
12 };
13
14 export type EditableInfographicData = Omit<ParsedDataBlock, "items"> & {
15 items: EditableInfographicItem[];
16 };
17
18 export type InfographicItemPatch = Partial<
19 Pick<
20 EditableInfographicItem,
21 "category" | "desc" | "group" | "id" | "label" | "value"
22 >
23 >;
24
25 export type InfographicDataMode = DataFieldType;
26
26 lines TYPESCRIPT