fix: use IAbstract to extend model interface
This commit is contained in:
parent
d36577c04e
commit
8be1f81848
28 changed files with 56 additions and 56 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import AbstractModel from './abstractModel'
|
||||
import AbstractModel, { type IAbstract } from './abstractModel'
|
||||
import UserModel, { type IUser } from './user'
|
||||
import type { ITask } from './task'
|
||||
|
||||
|
|
@ -19,7 +19,7 @@ export const RELATION_KINDS = [...Object.values(RELATION_KIND)] as const
|
|||
|
||||
export type RelationKind = typeof RELATION_KINDS[number]
|
||||
|
||||
export interface ITaskRelation extends AbstractModel {
|
||||
export interface ITaskRelation extends IAbstract {
|
||||
id: number
|
||||
otherTaskId: ITask['id']
|
||||
taskId: ITask['id']
|
||||
|
|
|
|||
Reference in a new issue