mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-24 17:10:03 +00:00
Entity defaults to Tag
This commit is contained in:
parent
5de3f7dd15
commit
ea7c118db6
1 changed files with 1 additions and 1 deletions
2
src/index.d.ts
vendored
2
src/index.d.ts
vendored
|
@ -2,7 +2,7 @@
|
||||||
* A unique identifier in the world, entity.
|
* A unique identifier in the world, entity.
|
||||||
* The generic type T defines the data type when this entity is used as a component
|
* 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
|
* An entity with no associated data when used as a component
|
||||||
|
|
Loading…
Reference in a new issue