Variable nodeTypeSchemaConst
nodeTypeSchema: ZodObject<
{
badge: ZodOptional<ZodString>;
category: ZodOptional<ZodString>;
color: ZodOptional<ZodString>;
description: ZodString;
docs: ZodOptional<ZodString>;
fields: ZodArray<
ZodObject<
{
allowExpression: ZodOptional<ZodBoolean>;
defaultValue: ZodOptional<ZodType<{} | null, ZodTypeDef, {} | null>>;
description: ZodOptional<ZodString>;
key: ZodString;
label: ZodString;
options: ZodOptional<
ZodArray<
ZodRecord<ZodString, ZodType<{} | null, ZodTypeDef, {} | null>>,
"many",
>,
>;
required: ZodOptional<ZodBoolean>;
type: ZodString;
},
"strip",
ZodTypeAny,
{
allowExpression?: boolean;
defaultValue?: {}
| null;
description?: string;
key: string;
label: string;
options?: Record<string, {} | null>[];
required?: boolean;
type: string;
},
{
allowExpression?: boolean;
defaultValue?: {}
| null;
description?: string;
key: string;
label: string;
options?: Record<string, {} | null>[];
required?: boolean;
type: string;
},
>,
"many",
>;
id: ZodString;
label: ZodString;
},
"strip",
ZodTypeAny,
{
badge?: string;
category?: string;
color?: string;
description: string;
docs?: string;
fields: {
allowExpression?: boolean;
defaultValue?: {}
| null;
description?: string;
key: string;
label: string;
options?: Record<string, {} | null>[];
required?: boolean;
type: string;
}[];
id: string;
label: string;
},
{
badge?: string;
category?: string;
color?: string;
description: string;
docs?: string;
fields: {
allowExpression?: boolean;
defaultValue?: {}
| null;
description?: string;
key: string;
label: string;
options?: Record<string, {} | null>[];
required?: boolean;
type: string;
}[];
id: string;
label: string;
},
> = ...
Runtime validator for NodeType.