Add shared ItemMediaKind Type
This commit is contained in:
15
src/types/base/models/item-media-kind.ts
Normal file
15
src/types/base/models/item-media-kind.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
export const ItemMediaKind = {
|
||||
MusicArtist: 'MusicArtist',
|
||||
Playlist: 'Playlist',
|
||||
MusicGenre: 'MusicGenre',
|
||||
Photo: 'Photo',
|
||||
Audio: 'Audio',
|
||||
Video: 'Video',
|
||||
Book: 'Book',
|
||||
Recording: 'Recording'
|
||||
} as const;
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export type ItemMediaKind = keyof typeof ItemMediaKind;
|
||||
|
||||
export type ItemMediaType = ItemMediaKind | null | undefined;
|
||||
Reference in New Issue
Block a user