Skip to content

Commit

Permalink
Fix entity type
Browse files Browse the repository at this point in the history
  • Loading branch information
Ukendio committed Nov 23, 2024
1 parent 46147cc commit 042903d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jecs.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 = 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
Expand Down

0 comments on commit 042903d

Please sign in to comment.