split interface to its own file

This commit is contained in:
Mads Rasmussen
2024-03-02 22:41:18 +01:00
parent 4fa9824401
commit 6313cc3c99
2 changed files with 23 additions and 19 deletions

View File

@@ -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<ArgsMetaType> extends UmbAction<UmbEntityActionArgs<ArgsMetaType>> {
/**
* The href location, the action will act as a link.
* @returns {Promise<string | null | undefined>}
*/
getHref(): Promise<string | null | undefined>;
/**
* The `execute` method, the action will act as a button.
* @returns {Promise<void>}
*/
execute(): Promise<void>;
}

View File

@@ -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<ArgsMetaType> extends UmbAction<UmbEntityActionArgs<ArgsMetaType>> {
/**
* The href location, the action will act as a link.
* @returns {Promise<string | null | undefined>}
*/
getHref(): Promise<string | null | undefined>;
/**
* The `execute` method, the action will act as a button.
* @returns {Promise<void>}
*/
execute(): Promise<void>;
}
/**
* Base class for an entity action.
* @export