fix: use definite assignment assertion operator
We used declare which is the wrong use-case for this. See: https://www.typescriptlang.org/docs/handbook/2/classes.html#--strictpropertyinitialization
This commit is contained in:
parent
041a1a4cc0
commit
96f5f00c07
33 changed files with 130 additions and 130 deletions
|
|
@ -15,8 +15,8 @@ export interface ITeamShareBase extends AbstractModel {
|
|||
* It is extended in a way so it can be used for namespaces as well for lists.
|
||||
*/
|
||||
export default class TeamShareBaseModel extends AbstractModel implements ITeamShareBase {
|
||||
declare teamId: ITeam['id']
|
||||
declare right: Right
|
||||
teamId!: ITeam['id']
|
||||
right!: Right
|
||||
|
||||
created: Date
|
||||
updated: Date
|
||||
|
|
|
|||
Reference in a new issue