Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

rename shortcuts

Oleg Isonen88f52173f740
diff --git a/app/lib/sync-engine/store.ts b/app/lib/sync-engine/store.ts
index 7607665288..a4b0a45d9e 100644
--- a/app/lib/sync-engine/store.ts
+++ b/app/lib/sync-engine/store.ts
@@ -17,8 +17,12 @@ export const register = <Value>(
registry.set(container, namespace);
};
-type UnwrapContainers<T extends ValueContainer<unknown>[]> = {
- [K in keyof T]: T[K] extends ValueContainer<infer X> ? X : never;
+type UnwrapContainers<Containers extends Array<ValueContainer<unknown>>> = {
+ [Index in keyof Containers]: Containers[Index] extends ValueContainer<
+ infer Value
+ >
+ ? Value
+ : never;
};
export const transaction = <Containers extends ValueContainer<Any>[]>(