Files
stacjownik/src/components/StationsView/typings.ts
T

35 lines
593 B
TypeScript

export interface FilterOption {
id: string;
name: string;
value: boolean;
defaultValue: boolean;
}
export const headIds = [
'station',
'min-lvl',
'status',
'dispatcher',
'dispatcher-lang',
'dispatcher-lvl',
'routes-single',
'routes-double',
'general'
] as const;
export const headIconsIds = [
'user',
'like',
'spawn',
'timetableAll',
'timetableUnconfirmed',
'timetableConfirmed'
] as const;
export type HeadIdsType = (typeof headIds)[number] | (typeof headIconsIds)[number];
export interface ActiveSorter {
headerName: HeadIdsType;
dir: number;
}