Files
webstudio/app/shared/component/instance-data.ts
T
2022-03-13 04:22:21 +00:00

22 lines
506 B
TypeScript

import type { InstanceProps } from "~/shared/db";
import { type Instance } from "@webstudio-is/sdk";
import type { Style, StyleProperty, StyleValue } from "@webstudio-is/sdk";
export type SelectedInstanceData = {
id: Instance["id"];
component: Instance["component"];
style: Style;
browserStyle: Style;
props: InstanceProps["props"];
};
type StyleUpdate = {
property: StyleProperty;
value: StyleValue;
};
export type StyleUpdates = {
id: Instance["id"];
updates: Array<StyleUpdate>;
};