Client
Server
Reference / @open-music-sdk/core / tSchemaLike
Defined in: packages/core/src/client.ts:66
Anything with a Standard Schema validate, such as the validators in @open-music-sdk/validate.
T
readonly ~standard: object;Defined in: packages/core/src/client.ts:68
The Standard Schema interface: the one part of a schema the client reads.
readonly validate: (value) =>
| tSchemaResult<T>
| Promise<tSchemaResult<T>>;Judges a value: gives it back, typed, or the issues found. The client awaits it, so it may be async.
unknown
| tSchemaResult<T> | Promise<tSchemaResult<T>>