We used declare which is the wrong use-case for this. See: https://www.typescriptlang.org/docs/handbook/2/classes.html#--strictpropertyinitialization
18 lines
No EOL
439 B
TypeScript
18 lines
No EOL
439 B
TypeScript
import UserShareBaseModel from './userShareBase'
|
|
import type { IList } from './list'
|
|
|
|
export interface IUserList extends UserShareBaseModel {
|
|
listId: IList['id']
|
|
}
|
|
|
|
// This class extends the user share model with a 'rights' parameter which is used in sharing
|
|
export default class UserListModel extends UserShareBaseModel implements IUserList {
|
|
listId!: IList['id']
|
|
|
|
defaults() {
|
|
return {
|
|
...super.defaults(),
|
|
listId: 0,
|
|
}
|
|
}
|
|
} |