mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-28 03:24:43 +08:00
Generic unknown keys object entity
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user