sb-mig
Version:
CLI to rule the world. (and handle stuff related to Storyblok CMS)
16 lines (15 loc) • 419 B
TypeScript
import type { RequestBaseConfig } from "../utils/request.js";
export interface TreeNode {
action: "update" | "create";
id: number;
parent_id: number | null;
children?: TreeNode[];
story: any;
}
export type Tree = TreeNode[];
export type TraverseAndCreate = (input: {
tree: Tree;
realParentId: number | null;
defaultRoot?: any;
spaceId: string;
}, config: RequestBaseConfig) => void;