Function: parsePlaintext()¶
Defined in: rine-ts-sdk/src/utils/schema.ts:39
Validate an arbitrary value against a Standard Schema v1 and return the
typed output. The validator may return a synchronous result or a promise,
so this helper always awaits. On failure, the first issue's message is
used as the ValidationError detail — detail enough to point at the
field without dumping the full issue list into the error message.
Type Parameters¶
| Type Parameter |
|---|
T |
Parameters¶
| Parameter | Type |
|---|---|
value |
unknown |
schema |
StandardSchemaV1\<unknown, T> |
Returns¶
Promise\<T>