Change types for tag and is_tag fns
Some checks failed
analysis / Run Luau Analyze (push) Has been cancelled
deploy-docs / build (push) Has been cancelled
publish-npm / publish (push) Has been cancelled
unit-testing / Run Luau Tests (push) Has been cancelled
deploy-docs / Deploy (push) Has been cancelled

This commit is contained in:
EncodedVenom 2025-05-28 13:31:03 -04:00 committed by GitHub
parent c62db9f8c3
commit b669196a98
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

6
jecs.d.ts vendored
View file

@ -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)