fix: introduce a ListView type to properly type all available list views
This commit is contained in:
parent
d91d1fecf1
commit
23598dd2ee
3 changed files with 20 additions and 13 deletions
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 a new issue