Skip to content

widgets.copy

Copies a built-in or user widget into the workspace’s .omfp/widgets/ (DMN-981).

/** `widgets.copy` params (DMN-981). */
export type CopyWidgetParams = {
/** Folder name in `.omfp/widgets/`; default: the widget's own name. */
name?: string | null;
/** `omfp:<name>`, a built-in. */
widget: string;
workspaceId: string;
};
/** `widgets.copy` result: the new widget is `./widgets/<name>`. */
export type WidgetCopied = {
name: string;
};