mirror of
https://github.com/Ukendio/jecs.git
synced 2025-08-04 03:09:18 +00:00
fix: world.entity accepts entity instead of number
This commit is contained in:
parent
2a24b2ffd8
commit
a0e7bf25ce
1 changed files with 1 additions and 1 deletions
2
jecs.d.ts
vendored
2
jecs.d.ts
vendored
|
@ -120,7 +120,7 @@ export class World {
|
||||||
* @returns An entity (Tag) with no data.
|
* @returns An entity (Tag) with no data.
|
||||||
*/
|
*/
|
||||||
entity(): Tag;
|
entity(): Tag;
|
||||||
entity(id: number): Tag;
|
entity<T extends Entity>(id: T): InferComponent<T> extends undefined ? Tag : T;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new entity in the first 256 IDs, typically used for static
|
* Creates a new entity in the first 256 IDs, typically used for static
|
||||||
|
|
Loading…
Reference in a new issue