Skip to content

Commit

Permalink
fix(store-sync): add NoInfer to syncToRecs options (#2943)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvrs authored Jul 15, 2024
1 parent 706986b commit f640fef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/four-peas-swim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@latticexyz/store-sync": patch
---

Added `NoInfer` to a part of `SyncToRecsOptions` to improve TypeScript performance.
5 changes: 2 additions & 3 deletions packages/store-sync/src/recs/syncToRecs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ import { createStoreSync } from "../createStoreSync";
import { singletonEntity } from "./singletonEntity";
import { SyncStep } from "../SyncStep";

type SyncToRecsOptions<config extends StoreConfig, extraTables extends Record<string, Table>> = Omit<
SyncOptions<config>,
"config"
type SyncToRecsOptions<config extends StoreConfig, extraTables extends Record<string, Table>> = NoInfer<
Omit<SyncOptions<config>, "config">
> & {
world: RecsWorld;
config: config;
Expand Down

0 comments on commit f640fef

Please sign in to comment.