This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
frontend/src/models/listDuplicateModel.ts

22 lines
561 B
TypeScript
Raw Normal View History

import AbstractModel, { type IAbstract } from './abstractModel'
2022-07-20 22:42:36 +00:00
import ListModel, { type IList } from './list'
import type { INamespace } from './namespace'
export interface IListDuplicate extends IAbstract {
2022-06-23 01:22:21 +00:00
listId: number
2022-07-20 22:42:36 +00:00
namespaceId: INamespace['id']
list: IList
}
2022-07-21 16:56:31 +00:00
export default class ListDuplicateModel extends AbstractModel implements IListDuplicate {
listId = 0
namespaceId: INamespace['id'] = 0
list: IList = ListModel
2022-06-23 01:22:21 +00:00
constructor(data : Partial<IListDuplicate>) {
super()
this.assignData(data)
this.list = new ListModel(this.list)
}
}