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;