mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-09 05:26:24 +09:00
10 lines
250 B
TypeScript
10 lines
250 B
TypeScript
export { useSubscribe } from "@webstudio-is/sdk";
|
|
|
|
export const publish = <Type extends string, Payload = undefined>(action: {
|
|
type: Type;
|
|
payload?: Payload;
|
|
}) => {
|
|
window.parent.postMessage(action, "*");
|
|
window.postMessage(action, "*");
|
|
};
|