Entity defaults to Tag

This commit is contained in:
Ukendio 2024-11-16 19:16:51 +01:00
parent 5de3f7dd15
commit ea7c118db6

2
src/index.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 = unknown> = number & { __jecs_value: T };
export type Entity<T = undefined> = number & { __jecs_value: T };
/**
* An entity with no associated data when used as a component