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