implement usefull actions and getters
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import type { ISODate } from '@/shared/types/date'
|
||||
import type { StepRecordable } from './step-recordable'
|
||||
|
||||
export interface Recordable {
|
||||
id: string
|
||||
taskId: string
|
||||
start: ISODate
|
||||
end?: ISODate
|
||||
stepRecords: Record<string, { start: ISODate; end?: ISODate }>
|
||||
stepRecords: Record<string, StepRecordable>
|
||||
}
|
||||
|
||||
6
src/modules/record/interfaces/step-recordable.ts
Normal file
6
src/modules/record/interfaces/step-recordable.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import type { ISODate } from '@/shared/types/date'
|
||||
|
||||
export interface StepRecordable {
|
||||
start: ISODate
|
||||
end?: ISODate
|
||||
}
|
||||
Reference in New Issue
Block a user