@pbvex/protocol / validateComponents
Function: validateComponents()
validateComponents(
value):Readonly<{definitions:Readonly<{args?:JSONValue;componentId:string;dependencies?:string[];env?:Record<string,Readonly<{name?: ... | ...;type: ... | ...;value?: ... | ...; }>>;moduleHashes?:Record<string,string>;modulePaths:string[];schema?:Readonly<{tables:Readonly<...>[]; }>; }>[];mounts:Readonly<{args?:JSONValue;children?: Readonly<{ name: string; componentId: string; args?: JSONValue | undefined; children?: Readonly<...>[] | undefined; }>[];componentId:string;name:string; }>[]; }> |undefined
Parameters
value
unknown
Returns
Readonly<{ definitions: Readonly<{ args?: JSONValue; componentId: string; dependencies?: string[]; env?: Record<string, Readonly<{ name?: ... | ...; type: ... | ...; value?: ... | ...; }>>; moduleHashes?: Record<string, string>; modulePaths: string[]; schema?: Readonly<{ tables: Readonly<...>[]; }>; }>[]; mounts: Readonly<{ args?: JSONValue; children?: Readonly<{ name: string; componentId: string; args?: JSONValue | undefined; children?: Readonly<...>[] | undefined; }>[]; componentId: string; name: string; }>[]; }> | undefined