(a: string, b: string)
| 23 | } |
| 24 | |
| 25 | function dayDiff(a: string, b: string) { |
| 26 | const ms = new Date(b).getTime() - new Date(a).getTime() |
| 27 | return Math.round(ms / (1000 * 60 * 60 * 24)) |
| 28 | } |
| 29 | |
| 30 | function incrementCopy(space: CopySpace) { |
| 31 | state.copies[space] += 1 |