From dcc478e1d5168f7889b81be5ff8a00f08da5d24b Mon Sep 17 00:00:00 2001 From: Alex Szabo Date: Wed, 15 Nov 2023 12:10:52 +0100 Subject: [PATCH] fix type error coming from race condition on plugin type changes (#171275) ## Summary Fixes type error coming from merge-race: https://github.com/elastic/kibana/pull/170852 - adds a new plugin https://github.com/elastic/kibana/pull/170856 - changes how plugins should look --- packages/kbn-mock-idp-plugin/server/plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/kbn-mock-idp-plugin/server/plugin.ts b/packages/kbn-mock-idp-plugin/server/plugin.ts index e24e7418cce62..20c115d80cf2c 100644 --- a/packages/kbn-mock-idp-plugin/server/plugin.ts +++ b/packages/kbn-mock-idp-plugin/server/plugin.ts @@ -16,7 +16,7 @@ import { parseSAMLAuthnRequest, } from '../common'; -export const plugin: PluginInitializer = (): Plugin => ({ +export const plugin: PluginInitializer = async (): Promise => ({ setup(core) { core.http.resources.register( {