Skip to content

Commit f5ffb92

Browse files
m-courtinpetermetz
authored andcommitted
fix: check for req function onPluginInit in isCactusPlugin
interface i-cactus-plugin in the function isICactusPlugin is not checking for required onPluginInit Closes: #1277 Signed-off-by: Michael Courtin <[email protected]>
1 parent 4745df0 commit f5ffb92

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/cactus-core-api/src/main/typescript/plugin/i-cactus-plugin.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ export function isICactusPlugin(x: unknown): x is ICactusPlugin {
7676
return (
7777
!!x &&
7878
typeof (x as ICactusPlugin).getPackageName === "function" &&
79-
typeof (x as ICactusPlugin).getInstanceId === "function"
79+
typeof (x as ICactusPlugin).getInstanceId === "function" &&
80+
typeof (x as ICactusPlugin).onPluginInit === "function"
8081
);
8182
}

0 commit comments

Comments
 (0)