diff --git a/jecs.d.ts b/jecs.d.ts index cac2208..4ffb93b 100644 --- a/jecs.d.ts +++ b/jecs.d.ts @@ -289,10 +289,10 @@ export function pair_first(world: World, p: Pair): Entity

; */ export function pair_second(world: World, p: Pair): Entity; -type StatefulHook(e: Entity, id: Id, data: T) => void> = Entity & { +type StatefulHook = Entity<(e: Entity, id: Id, data: T) => void> & { readonly __nominal_StatefulHook: unique symbol, } -type StatelessHook(e: Entity, id: Id) => void> = Entity & { +type StatelessHook = Entity<(e: Entity, id: Id) => void> & { readonly __nominal_StatelessHook: unique symbol, }