1
0
Files
tl-vikunja/frontend/src/models/userProject.ts
2024-02-07 14:56:56 +01:00

14 lines
466 B
TypeScript

import UserShareBaseModel from './userShareBase'
import type {IUserProject} from '@/modelTypes/IUserProject'
import type {IProject} from '@/modelTypes/IProject'
// This class extends the user share model with a 'rights' parameter which is used in sharing
export default class UserProjectModel extends UserShareBaseModel implements IUserProject {
projectId: IProject['id'] = 0
constructor(data: Partial<IUserProject>) {
super(data)
this.assignData(data)
}
}