96f5f00c07
We used declare which is the wrong use-case for this. See: https://www.typescriptlang.org/docs/handbook/2/classes.html#--strictpropertyinitialization
17 lines
No EOL
345 B
TypeScript
17 lines
No EOL
345 B
TypeScript
import TeamShareBaseModel from './teamShareBase'
|
|
import type { IList } from './list'
|
|
|
|
export interface ITeamList extends TeamShareBaseModel {
|
|
listId: IList['id']
|
|
}
|
|
|
|
export default class TeamListModel extends TeamShareBaseModel implements ITeamList {
|
|
listId!: IList['id']
|
|
|
|
defaults() {
|
|
return {
|
|
...super.defaults(),
|
|
listId: 0,
|
|
}
|
|
}
|
|
} |