Generic unknown keys object entity

This commit is contained in:
barsdeveloper
2022-11-20 18:03:40 +01:00
parent 1353a4ff4f
commit 401ce75fdc
12 changed files with 258 additions and 31 deletions

View File

@@ -109,4 +109,9 @@ export default class IEntity extends Observable {
}
defineAllAttributes(this, attributes, values)
}
unexpectedKeys() {
// @ts-expect-error
return Object.getOwnPropertyNames(this).length - Object.getOwnPropertyNames(this.constructor.attributes).length
}
}