mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add shared ItemMediaKind Type
This commit is contained in:
parent
064cebd41f
commit
28bf7d4dfb
1 changed files with 15 additions and 0 deletions
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;
|
Loading…
Add table
Add a link
Reference in a new issue