From f43f945eea9e948fa58550990b35c5dd2bc04678 Mon Sep 17 00:00:00 2001 From: alvarius Date: Wed, 17 Jul 2024 15:12:01 +0100 Subject: [PATCH] chore(store-sync): simplify types (#2946) Co-authored-by: Kevin Ingersoll --- .changeset/four-peas-swim.md | 2 +- packages/store-sync/src/recs/syncToRecs.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.changeset/four-peas-swim.md b/.changeset/four-peas-swim.md index aed5a5e6f2..f5c7255675 100644 --- a/.changeset/four-peas-swim.md +++ b/.changeset/four-peas-swim.md @@ -2,4 +2,4 @@ "@latticexyz/store-sync": patch --- -Added `NoInfer` to a part of `SyncToRecsOptions` to improve TypeScript performance. +Adjusted `SyncToRecsOptions` type intersection to improve TypeScript performance. diff --git a/packages/store-sync/src/recs/syncToRecs.ts b/packages/store-sync/src/recs/syncToRecs.ts index ef31c8d157..e8f63f7d6d 100644 --- a/packages/store-sync/src/recs/syncToRecs.ts +++ b/packages/store-sync/src/recs/syncToRecs.ts @@ -7,9 +7,7 @@ import { createStoreSync } from "../createStoreSync"; import { singletonEntity } from "./singletonEntity"; import { SyncStep } from "../SyncStep"; -type SyncToRecsOptions> = NoInfer< - Omit, "config"> -> & { +type SyncToRecsOptions> = SyncOptions & { world: RecsWorld; config: config; tables?: extraTables;