export the entrypoint lifecycle onInit type as its own
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
import type { UmbExtensionRegistry } from "./registry/extension.registry";
|
||||
import type { UmbControllerHostInterface } from "@umbraco-cms/controller";
|
||||
import type { UmbExtensionRegistry } from './registry/extension.registry';
|
||||
import type { UmbControllerHostInterface } from '@umbraco-cms/controller';
|
||||
|
||||
export type UmbEntrypointOnInit = (host: UmbControllerHostInterface, extensionRegistry: UmbExtensionRegistry) => void;
|
||||
|
||||
/**
|
||||
* Interface containing supported life-cycle functions for ESModule entrypoints
|
||||
*/
|
||||
export interface UmbEntrypointModule {
|
||||
onInit: (host: UmbControllerHostInterface, extensionRegistry: UmbExtensionRegistry) => void
|
||||
onInit: UmbEntrypointOnInit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user