1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

separate shared types

Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
grafixeyehero 2024-02-29 04:22:13 +03:00
parent bbc1860bde
commit 90a1d06557
9 changed files with 17 additions and 12 deletions

View file

@ -0,0 +1,3 @@
export type NullableString = string | null | undefined;
export type NullableNumber = number | null | undefined;
export type NullableBoolean = boolean | null | undefined;

View file

@ -4,7 +4,8 @@ import type { UserItemDataDto } from '@jellyfin/sdk/lib/generated-client/models/
import type { BaseItemDtoImageBlurHashes } from '@jellyfin/sdk/lib/generated-client/models/base-item-dto-image-blur-hashes';
import type { CollectionType } from '@jellyfin/sdk/lib/generated-client/models/collection-type';
import { CardShape } from 'utils/card';
import type { ItemDto, NullableString } from './itemDto';
import type { NullableString } from './base/common/shared/types';
import type { ItemDto } from './itemDto';
import type { ParentId } from './library';
export interface CardOptions {

View file

@ -1,5 +1,6 @@
import type { CollectionType, UserItemDataDto } from '@jellyfin/sdk/lib/generated-client';
import type { NullableBoolean, NullableNumber, NullableString } from './itemDto';
import type { CollectionType } from '@jellyfin/sdk/lib/generated-client/models/collection-type';
import type { UserItemDataDto } from '@jellyfin/sdk/lib/generated-client/models/user-item-data-dto';
import type { NullableBoolean, NullableNumber, NullableString } from './base/common/shared/types';
export type AttributesOpts = {
context?: CollectionType,

View file

@ -20,7 +20,3 @@ export interface ItemDto extends BaseItem, TimerInfo, SeriesTimerInfo, SearchHin
'Name'?: string | null;
'ItemId'?: string | null;
}
export type NullableString = string | null | undefined;
export type NullableNumber = number | null | undefined;
export type NullableBoolean = boolean | null | undefined;