mirror of
https://github.com/Ukendio/jecs.git
synced 2025-06-20 00:09:18 +00:00
Change types for tag and is_tag fns
Some checks failed
Some checks failed
This commit is contained in:
parent
c62db9f8c3
commit
b669196a98
1 changed files with 3 additions and 3 deletions
6
jecs.d.ts
vendored
6
jecs.d.ts
vendored
|
@ -244,12 +244,12 @@ export class World {
|
|||
|
||||
export function component<T>(): Entity<T>;
|
||||
|
||||
export function tag<T>(): Entity<T>;
|
||||
export function tag(): Tag;
|
||||
|
||||
// note: original types had id: Entity, id: Id<T>, which does not work with TS.
|
||||
export function meta<T>(e: Entity, id: Id<T>, value?: T): Entity<T>
|
||||
export function meta<T>(e: Entity, id: Id<T>, value?: T): Entity<T>;
|
||||
|
||||
export function is_tag<T>(world: World, id: Id<T>): boolean;
|
||||
export function is_tag(world: World, id: Id): boolean;
|
||||
|
||||
/**
|
||||
* Creates a composite key (pair)
|
||||
|
|
Loading…
Reference in a new issue