mirror of
https://github.com/Ukendio/jecs.git
synced 2025-08-04 03:09:18 +00:00
updated ts typings
This commit is contained in:
parent
6a8d991185
commit
1413be61cd
2 changed files with 3 additions and 1 deletions
3
jecs.d.ts
vendored
3
jecs.d.ts
vendored
|
@ -256,6 +256,9 @@ export function pair_first<P, O>(world: World, p: Pair<P, O>): Entity<P>;
|
|||
*/
|
||||
export function pair_second<P, O>(world: World, p: Pair<P, O>): Entity<O>;
|
||||
|
||||
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;
|
||||
export declare const OnAdd: Entity<(e: Entity) => void>;
|
||||
export declare const OnRemove: Entity<(e: Entity) => void>;
|
||||
export declare const OnChange: Entity<(e: Entity, value: unknown) => void>;
|
||||
|
|
|
@ -2646,7 +2646,6 @@ return {
|
|||
tag = (ECS_TAG :: any) :: <T>() -> Entity<T>,
|
||||
meta = (ECS_META :: any) :: <T>(id: Entity, id: Id<T>, value: T) -> Entity<T>,
|
||||
is_tag = (ecs_is_tag :: any) :: <T>(World, Id<T>) -> boolean,
|
||||
|
||||
OnAdd = EcsOnAdd :: Entity<(entity: Entity) -> ()>,
|
||||
OnRemove = EcsOnRemove :: Entity<(entity: Entity) -> ()>,
|
||||
OnChange = EcsOnChange :: Entity<(entity: Entity, data: any) -> ()>,
|
||||
|
|
Loading…
Reference in a new issue