Skip to content

Commit

Permalink
Entity defaults to Tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Ukendio committed Nov 16, 2024
1 parent 5de3f7d commit ea7c118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ea7c118

Please sign in to comment.