From a16ab18ec4e08fd66a9dfc6d16bc60717a7f0be6 Mon Sep 17 00:00:00 2001 From: EncodedVenom Date: Sat, 15 Jun 2024 01:39:43 -0400 Subject: [PATCH] Fix InferComponents types due to typo / misunderstanding --- lib/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/index.d.ts b/lib/index.d.ts index 5edf5f5..88b0165 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -46,14 +46,14 @@ type Record = { componentRecord: ArchetypeMap, } -type Query = { +type Query = { without: (...components: Entity[]) => Query; } & IterableFunction> // Utility Types export type Entity = number & { __nominal_type_dont_use: T } export type EntityType = T extends Entity ? A : never; -export type InferComponents = A & { +export type InferComponents = { [K in keyof A]: EntityType };