♻️ (record) time range instead of step recordable

This commit is contained in:
Julien Calixte
2023-04-16 10:16:42 +02:00
parent 81cfab485e
commit d5c616e22b
4 changed files with 7 additions and 11 deletions

View File

@@ -1,11 +1,11 @@
import { toISODate, type ISODate } from '@/shared/types/date'
import type { Recordable } from '../interfaces/recordable'
import type { StepRecordable } from '../interfaces/step-recordable'
import type { TimeRange } from '../interfaces/time-range'
export class TaskRecord implements Recordable {
public start: ISODate = toISODate(new Date())
public end: ISODate | undefined = undefined
public stepRecords: Record<string, StepRecordable> = {}
public stepRecords: Record<string, TimeRange> = {}
public notes = ''
public constructor(public readonly taskId: string) {}