fix: merge duplicate types
This commit is contained in:
14
src/types/IRepeats.ts
Normal file
14
src/types/IRepeats.ts
Normal 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,
|
||||
}
|
Reference in New Issue
Block a user