This repository has been archived on 2025-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
lcm-potty-chart/types/StickerContext.d.ts

29 lines
508 B
TypeScript

interface StickersContextState {
stickersMonth: StickerDays;
addEditSticker: (date: Date, sticker: ValidStickerVal) => Sticker;
}
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[];
}