Skip to content
Client
Server

Reference / @open-music-sdk/validate / tCheck

Type Alias: tCheck ​

ts
type tCheck = (value, path, issues) => void;

Defined in: runtime.ts:58

The raw check a validator is built from. It returns nothing: a check that found nothing wrong has pushed nothing.

Parameters ​

value ​

unknown

What to look at.

path ​

readonly (string | number)[]

Where value sits in the whole, from the root, for the issues to carry.

issues ​

tIssue[]

Where to push one issue for each thing wrong.

Returns ​

void

MIT licensed. Not affiliated with, endorsed by, or sponsored by Apple Inc. Apple Music and MusicKit are trademarks of Apple Inc.