mirror of
https://github.com/Ukendio/jecs.git
synced 2025-08-04 03:09:18 +00:00
ts typings + component()
This commit is contained in:
parent
1413be61cd
commit
7e7d930aef
2 changed files with 1 additions and 1 deletions
BIN
.DS_Store
vendored
Normal file
BIN
.DS_Store
vendored
Normal file
Binary file not shown.
2
jecs.d.ts
vendored
2
jecs.d.ts
vendored
|
@ -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
|
* @returns The second entity (object) of the pair
|
||||||
*/
|
*/
|
||||||
export function pair_second<P, O>(world: World, p: Pair<P, O>): Entity<O>;
|
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 is_tag: <T>(world: World,id:Id<T>)=>boolean;
|
||||||
export declare const tag: <T>()=> Entity<T>;
|
export declare const tag: <T>()=> Entity<T>;
|
||||||
export declare const meta: <T>(id: Entity, uid: Entity, value?: T) => void;
|
export declare const meta: <T>(id: Entity, uid: Entity, value?: T) => void;
|
||||||
|
|
Loading…
Reference in a new issue