From 137118f17815794f2cd9f63c8bba239488f4c8fb Mon Sep 17 00:00:00 2001 From: daimond113 Date: Fri, 6 Jun 2025 00:24:19 +0200 Subject: [PATCH] Remove generic --- jecs.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, }