mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-24 17:10:03 +00:00
Fix entity type
This commit is contained in:
parent
46147cc9f9
commit
042903df93
1 changed files with 1 additions and 1 deletions
2
jecs.d.ts
vendored
2
jecs.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
* A unique identifier in the world, entity.
|
||||
* The generic type T defines the data type when this entity is used as a component
|
||||
*/
|
||||
export type Entity<T = undefined> = number & { __jecs_value: T };
|
||||
export type Entity<T = undefined | unknown> = number & { __jecs_value: T };
|
||||
|
||||
/**
|
||||
* An entity with no associated data when used as a component
|
||||
|
|
Loading…
Reference in a new issue