Add sticker interfaces and types.

This commit is contained in:
Lucid Kobold
2022-02-03 13:38:49 -06:00
parent e8670f7778
commit a213b27eeb

View File

@@ -1,3 +1,28 @@
interface StickersContextState { interface StickersContextState {
stickersMonth: StickerDays; stickersMonth: StickerDays;
addEditSticker: (date: Date, sticker: ValidStickerVal) => void;
}
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: Date;
sticker: StickerVal;
edited: boolean;
manual: boolean;
}
type StickerDays = Sticker[];
interface MonthSticker {
date: Date;
month: Sticker[];
} }