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
395 B
TypeScript
17 lines
No EOL
395 B
TypeScript
import TeamShareBaseModel from './teamShareBase'
|
|
import type { INamespace } from './namespace'
|
|
|
|
export interface ITeamNamespace extends TeamShareBaseModel {
|
|
namespaceId: INamespace['id']
|
|
}
|
|
|
|
export default class TeamNamespaceModel extends TeamShareBaseModel implements ITeamNamespace {
|
|
namespaceId!: INamespace['id']
|
|
|
|
defaults() {
|
|
return {
|
|
...super.defaults(),
|
|
namespaceId: 0,
|
|
}
|
|
}
|
|
} |