vikunja-frontend/src/models/userList.ts

18 lines
439 B
TypeScript
Raw Normal View History

import UserShareBaseModel from './userShareBase'
2022-07-21 00:42:36 +02:00
import type { IList } from './list'
export interface IUserList extends UserShareBaseModel {
2022-07-21 00:42:36 +02:00
listId: IList['id']
}
// This class extends the user share model with a 'rights' parameter which is used in sharing
2022-07-21 00:42:36 +02:00
export default class UserListModel extends UserShareBaseModel implements IUserList {
listId!: IList['id']
2022-06-23 03:22:21 +02:00
defaults() {
return {
...super.defaults(),
listId: 0,
}
}
}