Skip to content
Client
Server

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

Interface: tViewsOption<Views> ​

Defined in: packages/core/src/endpoint.ts:371

The option of a function for a resource that has views: which of them to send with the resource.

Type Parameters ​

Views ​

Views

Properties ​

views? ​

ts
readonly optional views?: readonly (keyof Views & string)[];

Defined in: packages/core/src/endpoint.ts:373

The views to send with the resource, by name, such as ["top-songs"]. Default: none.

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