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:
parent
bbc1860bde
commit
90a1d06557
9 changed files with 17 additions and 12 deletions
3
src/types/base/common/shared/types.ts
Normal file
3
src/types/base/common/shared/types.ts
Normal file
|
@ -0,0 +1,3 @@
|
|||
export type NullableString = string | null | undefined;
|
||||
export type NullableNumber = number | null | undefined;
|
||||
export type NullableBoolean = boolean | null | undefined;
|
|
@ -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 {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue