mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-25 01:20:04 +00:00
fix: OnAdd
, OnRemove
and OnSet
were typed as Entity<any>
rendering them unusable with strict types (#107)
This commit is contained in:
parent
64bc3bfe7e
commit
ff98e8b5fb
1 changed files with 3 additions and 3 deletions
|
@ -1549,9 +1549,9 @@ export type World = {
|
|||
return {
|
||||
World = World :: { new: () -> World },
|
||||
|
||||
OnAdd = EcsOnAdd :: Entity,
|
||||
OnRemove = EcsOnRemove :: Entity,
|
||||
OnSet = EcsOnSet :: Entity,
|
||||
OnAdd = EcsOnAdd :: Entity<(entity: Entity) -> ()>,
|
||||
OnRemove = EcsOnRemove :: Entity<(entity: Entity) -> ()>,
|
||||
OnSet = EcsOnSet :: Entity<(entity: Entity, data: any) -> ()>,
|
||||
ChildOf = EcsChildOf :: Entity,
|
||||
Component = EcsComponent :: Entity,
|
||||
Wildcard = EcsWildcard :: Entity,
|
||||
|
|
Loading…
Reference in a new issue