Skip to content

Commit f43f945

Browse files
alvrsfrolic
andauthored
chore(store-sync): simplify types (latticexyz#2946)
Co-authored-by: Kevin Ingersoll <[email protected]>
1 parent 609de11 commit f43f945

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.changeset/four-peas-swim.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"@latticexyz/store-sync": patch
33
---
44

5-
Added `NoInfer` to a part of `SyncToRecsOptions` to improve TypeScript performance.
5+
Adjusted `SyncToRecsOptions` type intersection to improve TypeScript performance.

packages/store-sync/src/recs/syncToRecs.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ import { createStoreSync } from "../createStoreSync";
77
import { singletonEntity } from "./singletonEntity";
88
import { SyncStep } from "../SyncStep";
99

10-
type SyncToRecsOptions<config extends StoreConfig, extraTables extends Record<string, Table>> = NoInfer<
11-
Omit<SyncOptions<config>, "config">
12-
> & {
10+
type SyncToRecsOptions<config extends StoreConfig, extraTables extends Record<string, Table>> = SyncOptions & {
1311
world: RecsWorld;
1412
config: config;
1513
tables?: extraTables;

0 commit comments

Comments
 (0)