From f640fefd72b93ee924fb79cf0d6eebeaac3dfa32 Mon Sep 17 00:00:00 2001 From: alvarius Date: Mon, 15 Jul 2024 15:38:16 +0100 Subject: [PATCH] fix(store-sync): add NoInfer to syncToRecs options (#2943) --- .changeset/four-peas-swim.md | 5 +++++ packages/store-sync/src/recs/syncToRecs.ts | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 .changeset/four-peas-swim.md diff --git a/.changeset/four-peas-swim.md b/.changeset/four-peas-swim.md new file mode 100644 index 0000000000..aed5a5e6f2 --- /dev/null +++ b/.changeset/four-peas-swim.md @@ -0,0 +1,5 @@ +--- +"@latticexyz/store-sync": patch +--- + +Added `NoInfer` to a part of `SyncToRecsOptions` to improve TypeScript performance. diff --git a/packages/store-sync/src/recs/syncToRecs.ts b/packages/store-sync/src/recs/syncToRecs.ts index c845cd2878..ef31c8d157 100644 --- a/packages/store-sync/src/recs/syncToRecs.ts +++ b/packages/store-sync/src/recs/syncToRecs.ts @@ -7,9 +7,8 @@ import { createStoreSync } from "../createStoreSync"; import { singletonEntity } from "./singletonEntity"; import { SyncStep } from "../SyncStep"; -type SyncToRecsOptions> = Omit< - SyncOptions, - "config" +type SyncToRecsOptions> = NoInfer< + Omit, "config"> > & { world: RecsWorld; config: config;