Client
Server
Reference / @open-music-sdk/core / listOf
function listOf(
fn,
name,
value
): readonly string[];Defined in: packages/core/src/check.ts:188
value as a list of one or more strings, of the caller's ids, types or codes: this call's own copy, taken before it is checked, so what was checked is what is sent.
string
The name of the function the list was handed to, for the error.
string
What the function calls this argument, for the error, such as "ids".
unknown
What the caller gave as a list.
readonly string[]
A new array of the list's strings, in their order.
TypeError if value is not an array of 1 to 300 strings, each of 1 to 64 characters with no comma in it.