Copied all potty chart code without changes.
This commit is contained in:
24
types/Stickers.d.ts
vendored
Normal file
24
types/Stickers.d.ts
vendored
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user