1
0

fix: merge duplicate types

This commit is contained in:
Dominik Pschenitschni
2022-07-21 19:16:13 +02:00
parent 3ba423ed23
commit 106abfc842
3 changed files with 36 additions and 39 deletions

14
src/types/IRepeats.ts Normal file
View File

@ -0,0 +1,14 @@
export const REPEAT_TYPES = {
Hours: 'hours',
Days: 'days',
Weeks: 'weeks',
Months: 'months',
Years: 'years',
} as const
export type RepeatType = typeof REPEAT_TYPES[keyof typeof REPEAT_TYPES]
export interface IRepeats {
type: RepeatType,
amount: number,
}