Graphorin API reference v0.8.0
Graphorin API reference / @graphorin/core / / PayloadSchemaLike
Interface: PayloadSchemaLike<T>
Defined in: packages/core/src/channels/durable.ts:127
Structural schema slice awaitExternal({ schema }) validates the resolved payload against. Matches zod v3 and v4 (and anything else exposing the same safeParse) without a zod dependency in core - the same structural stance as the tools-layer schema seam.
Stable
Type Parameters
| Type Parameter |
|---|
T |
Methods
safeParse()
ts
safeParse(value):
| {
data: T;
success: true;
}
| {
error: {
message: string;
};
success: false;
};Defined in: packages/core/src/channels/durable.ts:128
Parameters
| Parameter | Type |
|---|---|
value | unknown |
Returns
| { data: T; success: true; } | { error: { message: string; }; success: false; }