Skip to content

Commit

Permalink
chore(store-sync): simplify types (#2946)
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Ingersoll <[email protected]>
  • Loading branch information
alvrs and holic authored Jul 17, 2024
1 parent 609de11 commit f43f945
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .changeset/four-peas-swim.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
4 changes: 1 addition & 3 deletions packages/store-sync/src/recs/syncToRecs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ import { createStoreSync } from "../createStoreSync";
import { singletonEntity } from "./singletonEntity";
import { SyncStep } from "../SyncStep";

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

0 comments on commit f43f945

Please sign in to comment.