Added typescript types
This commit is contained in:
parent
c2b6bb6b8e
commit
c875366d86
15
src/types.ts
Normal file
15
src/types.ts
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
export enum Scale {
|
||||||
|
Day = "D",
|
||||||
|
Week = "W",
|
||||||
|
Month = "M",
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Event {
|
||||||
|
date: Date;
|
||||||
|
title: string;
|
||||||
|
text?: string;
|
||||||
|
icon?: string;
|
||||||
|
bgColor?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export type Groups = Event[][];
|
||||||
Loading…
x
Reference in New Issue
Block a user