Add shared ItemKind Type

This commit is contained in:
grafixeyehero 2024-03-03 01:33:51 +03:00
parent d5a775502b
commit 064cebd41f

View 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;