Skip to content
Client
Server

Reference / @open-music-sdk/core / got

Function: got() ​

ts
function got(value): string;

Defined in: packages/core/src/got.ts:8

What a value is, for an error that must not show what it holds: a value in the wrong place may be the private key, or some other secret. A number is the one thing printed as it is, since it cannot be either.

Parameters ​

value ​

unknown

The value an error is about.

Returns ​

string

The number itself, "null", a string's length as "12 characters", or else what typeof says: fit to end a message with.

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