split interface to its own file
This commit is contained in:
@@ -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>;
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user