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:
Dominik Pschenitschni 2022-08-13 15:38:41 +02:00
parent 041a1a4cc0
commit 96f5f00c07
No known key found for this signature in database
GPG key ID: B257AC0149F43A77
33 changed files with 130 additions and 130 deletions

View file

@ -18,14 +18,14 @@ export interface INamespace extends AbstractModel {
}
export default class NamespaceModel extends AbstractModel implements INamespace {
declare id: number
declare title: string
declare description: string
id!: number
title!: string
description!: string
owner: IUser
lists: IList[]
declare isArchived: boolean
declare hexColor: string
declare subscription: ISubscription
isArchived!: boolean
hexColor!: string
subscription!: ISubscription
created: Date
updated: Date