mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-15 18:08:17 -07:00
Add shared ItemKind Type
This commit is contained in:
parent
d5a775502b
commit
064cebd41f
12
src/types/base/models/item-kind.ts
Normal file
12
src/types/base/models/item-kind.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client/models/base-item-kind';
|
||||
|
||||
export const ItemKind = {
|
||||
...BaseItemKind,
|
||||
Timer: 'Timer',
|
||||
SeriesTimer: 'SeriesTimer'
|
||||
} as const;
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export type ItemKind = keyof typeof ItemKind;
|
||||
|
||||
export type ItemType = ItemKind | null | undefined;
|
Loading…
Reference in New Issue
Block a user