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.

add types for createBatchUpdate

Sultanbe2f1f00ecfb
diff --git a/apps/designer/app/designer/features/style-panel/lib/use-style-data.ts b/apps/designer/app/designer/features/style-panel/lib/use-style-data.ts
index b352d523a4..a3d5658df5 100644
--- a/apps/designer/app/designer/features/style-panel/lib/use-style-data.ts
+++ b/apps/designer/app/designer/features/style-panel/lib/use-style-data.ts
@@ -21,6 +21,11 @@ export type SetProperty = (
property: StyleProperty
) => (value: string, options?: StyleUpdateOptions) => void;
+export type CreateBatchUpdate = () => {
+ setProperty: SetProperty;
+ publish: () => void;
+};
+
export const useStyleData = ({
selectedInstanceData,
publish,