1
0

fix: introduce a ListView type to properly type all available list views

This commit is contained in:
kolaente
2022-09-08 14:11:19 +02:00
parent d91d1fecf1
commit 23598dd2ee
3 changed files with 20 additions and 13 deletions

8
src/types/ListView.ts Normal file
View 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]