fix: introduce a ListView type to properly type all available list views
This commit is contained in:
8
src/types/ListView.ts
Normal file
8
src/types/ListView.ts
Normal file
@ -0,0 +1,8 @@
|
||||
export const LIST_VIEWS = {
|
||||
LIST: 'list',
|
||||
GANTT: 'gantt',
|
||||
TABLE: 'table',
|
||||
KANBAN: 'kanban',
|
||||
} as const
|
||||
|
||||
export type ListView = typeof LIST_VIEWS[keyof typeof LIST_VIEWS]
|
Reference in New Issue
Block a user