fix: use IAbstract to extend model interface

This commit is contained in:
Dominik Pschenitschni 2022-08-14 12:15:09 +02:00
parent d36577c04e
commit 8be1f81848
No known key found for this signature in database
GPG key ID: B257AC0149F43A77
28 changed files with 56 additions and 56 deletions

View file

@ -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']