diff --git a/jecs.d.ts b/jecs.d.ts index 6047d30..72b3215 100644 --- a/jecs.d.ts +++ b/jecs.d.ts @@ -244,12 +244,12 @@ export class World { export function component(): Entity; -export function tag(): Entity; +export function tag(): Tag; // note: original types had id: Entity, id: Id, which does not work with TS. -export function meta(e: Entity, id: Id, value?: T): Entity +export function meta(e: Entity, id: Id, value?: T): Entity; -export function is_tag(world: World, id: Id): boolean; +export function is_tag(world: World, id: Id): boolean; /** * Creates a composite key (pair)