From b669196a9889e8db5d0e6fced203522af908a59f Mon Sep 17 00:00:00 2001 From: EncodedVenom <32179912+EncodedVenom@users.noreply.github.com> Date: Wed, 28 May 2025 13:31:03 -0400 Subject: [PATCH] Change types for tag and is_tag fns --- jecs.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)