export the entrypoint lifecycle onInit type as its own

This commit is contained in:
Jacob Overgaard
2023-03-14 16:12:02 +01:00
parent f305f0479f
commit 9edcf5418b

View File

@@ -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;
}