diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/entity-action/entity-action.interface.ts b/src/Umbraco.Web.UI.Client/src/packages/core/entity-action/entity-action.interface.ts new file mode 100644 index 0000000000..57ba63eb4f --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/packages/core/entity-action/entity-action.interface.ts @@ -0,0 +1,21 @@ +import type { UmbEntityActionArgs } from './types.js'; +import type { UmbAction } from '@umbraco-cms/backoffice/action'; + +/** + * Interface for an entity action. + * @export + * @interface UmbEntityAction + */ +export interface UmbEntityAction extends UmbAction> { + /** + * The href location, the action will act as a link. + * @returns {Promise} + */ + getHref(): Promise; + + /** + * The `execute` method, the action will act as a button. + * @returns {Promise} + */ + execute(): Promise; +} diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/entity-action/entity-action.ts b/src/Umbraco.Web.UI.Client/src/packages/core/entity-action/entity-action.ts index 98078c35b8..f9a26e982c 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/entity-action/entity-action.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/entity-action/entity-action.ts @@ -1,24 +1,7 @@ +import type { UmbEntityAction } from './entity-action.interface.js'; +import type { UmbEntityActionArgs } from './types.js'; import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api'; -/** - * Interface for an entity action. - * @export - * @interface UmbEntityAction - */ -export interface UmbEntityAction extends UmbAction> { - /** - * The href location, the action will act as a link. - * @returns {Promise} - */ - getHref(): Promise; - - /** - * The `execute` method, the action will act as a button. - * @returns {Promise} - */ - execute(): Promise; -} - /** * Base class for an entity action. * @export