Rename type definition files. Update documentation. Update date-fn functions being used.

This commit is contained in:
Lucid Kobold
2022-06-14 17:38:40 -05:00
parent 632674c898
commit dff09977f9
8 changed files with 37 additions and 29 deletions

24
types/Stickers.d.ts vendored Normal file
View File

@@ -0,0 +1,24 @@
type StickerVal = -2 | -1 | 0 | 1 | 2 | null;
type ValidStickerVal = -2 | -1 | 0 | 1 | 2;
interface AddEditStickerProps {
date: Date;
sticker: ValidStickerVal;
}
interface Sticker {
id: string;
date: string;
sticker: StickerVal;
edited: boolean;
manual: boolean;
}
type StickerDays = Sticker[];
interface StickerModal {
isOpen: boolean;
selectedSticker: StickerVal;
step: number;
}