ts typings + component()

This commit is contained in:
chodoru 2025-05-01 15:18:59 +03:00
parent 1413be61cd
commit 7e7d930aef
2 changed files with 1 additions and 1 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

2
jecs.d.ts vendored
View file

@ -255,7 +255,7 @@ export function pair_first<P, O>(world: World, p: Pair<P, O>): Entity<P>;
* @returns The second entity (object) of the pair
*/
export function pair_second<P, O>(world: World, p: Pair<P, O>): Entity<O>;
export declare const component: <T>() => Entity<T>;
export declare const is_tag: <T>(world: World,id:Id<T>)=>boolean;
export declare const tag: <T>()=> Entity<T>;
export declare const meta: <T>(id: Entity, uid: Entity, value?: T) => void;