Fix entity type

This commit is contained in:
Ukendio 2024-11-23 20:50:31 +01:00
parent 46147cc9f9
commit 042903df93

2
jecs.d.ts vendored
View file

@ -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