Skip to content
Client
Server

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

Interface: tResponseOutcome ​

Defined in: packages/core/src/client.ts:127

What a response came to, as an onResponse hook hears it: the body read and parsed, and the error it made, if any.

Properties ​

body ​

ts
readonly body: unknown;

Defined in: packages/core/src/client.ts:129

The parsed JSON body; undefined when there was none or it was not JSON.


error ​

ts
readonly error: 
  | AppleMusicError<tErrorTag>
  | undefined;

Defined in: packages/core/src/client.ts:131

The error this response produced, if any. The request may still be retried after it.

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