import { LazyLoaded, WithId } from './utils'; import { LanguageWithIdT } from './language'; export type AliasT = { name: string; sortName: string; languageId: number | null; primary: boolean; }; export type AliasWithIdT = WithId; export type LazyLoadedAliasT = AliasWithIdT & LazyLoaded<{ language: LanguageWithIdT; }>; export type NewOrExistingAliasT = AliasT & { id?: number; }; export type AliasWithDefaultT = NewOrExistingAliasT & { default?: boolean; }; export type AliasSetT = { defaultAliasId: number | null; }; export type AliasSetWithIdT = WithId; export type LazyLoadedAliasSetT = AliasSetWithIdT & LazyLoaded<{ aliases: Array; }>;