diff --git a/src/jecs.d.ts b/src/jecs.d.ts index 0c79c54..77d9886 100755 --- a/src/jecs.d.ts +++ b/src/jecs.d.ts @@ -36,8 +36,8 @@ export type InferComponent = E extends Entity ? D : E extends Pair ? P extends TagDiscriminator - ? O - : P + ? O + : P : never; type FlattenTuple = T extends [infer U] ? U : LuaTuple; @@ -178,7 +178,7 @@ export class World { * @param entity The target entity. * @param component The component (or tag) to add. */ - add(entity: Entity, component: TagDiscriminator extends InferComponent ? C : Id ): void; + add(entity: Entity, component: TagDiscriminator extends InferComponent ? C : Id): void; /** * Installs a hook on the given component.