mirror of
https://github.com/theoludwig/p61-project.git
synced 2024-07-17 07:00:12 +02:00
19 lines
511 B
TypeScript
19 lines
511 B
TypeScript
import type { Habit } from "./Habit"
|
|
import type { HabitProgress } from "./HabitProgress"
|
|
|
|
export interface HabitProgressHistoryOptions {
|
|
habit: Habit
|
|
habitProgresses: HabitProgress[]
|
|
}
|
|
|
|
export class HabitProgressHistory implements HabitProgressHistoryOptions {
|
|
public habit: Habit
|
|
public habitProgresses: HabitProgress[]
|
|
|
|
public constructor(options: HabitProgressHistoryOptions) {
|
|
const { habit, habitProgresses } = options
|
|
this.habit = habit
|
|
this.habitProgresses = habitProgresses
|
|
}
|
|
}
|