frontend/src/types/IRepeatAfter.ts

14 lines
271 B
TypeScript

export const REPEAT_TYPES = {
Hours: 'hours',
Days: 'days',
Weeks: 'weeks',
Months: 'months',
Years: 'years',
} as const
export type IRepeatType = typeof REPEAT_TYPES[keyof typeof REPEAT_TYPES]
export interface IRepeatAfter {
type: IRepeatType,
amount: number,
}