We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4235223 commit 55e4843Copy full SHA for 55e4843
1 file changed
packages/database/src/core/modelClasses/Entity.js
@@ -125,11 +125,12 @@ export const ENTITY_RELATION_TYPE = /** @type {const} */ ({
125
export class EntityRecord extends DatabaseRecord {
126
static databaseRecord = RECORDS.ENTITY;
127
128
- /** @type {EntityMetadata} */
129
- metadata;
130
-
131
- /** @type {EntityTypeEnum} */
132
- type;
+ /** @privateRemarks Does nothing meaningful runtime, but provides type hints to TypeScript */
+ constructor(...args) {
+ super(...args);
+ /** @type {Entity['metadata']} */ this.metadata;
+ /** @type {Entity['type']} */ this.type;
133
+ }
134
135
// Exposed for access policy creation.
136
get organisationUnitCode() {
0 commit comments