Added typescript types

This commit is contained in:
Franco Speziali 2022-03-16 08:40:18 +01:00
parent c2b6bb6b8e
commit c875366d86

15
src/types.ts Normal file
View 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[][];