From 150fccd2ce50ea2935060fcaaa4234a3bc0d45c6 Mon Sep 17 00:00:00 2001 From: dai Date: Mon, 16 Jun 2025 15:12:01 +0200 Subject: [PATCH] Fix regression with set (#242) --- jecs.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jecs.d.ts b/jecs.d.ts index 015afc3..12ba7a4 100644 --- a/jecs.d.ts +++ b/jecs.d.ts @@ -165,7 +165,7 @@ export class World { * @param component The component definition (could be a Pair or Entity). * @param value The value to store with that component. */ - set(entity: Entity, component: Id, value: T): void; + set>(entity: Entity, component: E, value: InferComponent): void; /** * Cleans up the world by removing empty archetypes and rebuilding the archetype collections.