alepha
Version:
Easy-to-use modern TypeScript framework for building many kind of applications.
14 lines (11 loc) • 317 B
text/typescript
import { type Static, z } from "alepha";
/**
* Tree node schema for parameter tree navigation.
*/
export const parameterTreeNodeSchema = z.object({
name: z.text(),
path: z.text(),
isLeaf: z.boolean(),
children: z.array(z.any()),
});
export type ParameterTreeNode = Static<typeof parameterTreeNodeSchema>;