This repository has been archived on 2025-10-28. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
vikunja-frontend/src/models/userNamespace.ts
2022-09-05 17:43:56 +02:00

18 lines
No EOL
489 B
TypeScript

import UserShareBaseModel from './userShareBase'
import type { INamespace } from './namespace'
export interface IUserNamespace extends UserShareBaseModel {
namespaceId: INamespace['id']
}
// This class extends the user share model with a 'rights' parameter which is used in sharing
export default class UserNamespaceModel extends UserShareBaseModel implements IUserNamespace {
namespaceId!: INamespace['id']
defaults() {
return {
...super.defaults(),
namespaceId: 0,
}
}
}