diff --git a/src/legacy/server/kbn_server.d.ts b/src/legacy/server/kbn_server.d.ts index ad4d3b92c5c66..3bb885dbee756 100644 --- a/src/legacy/server/kbn_server.d.ts +++ b/src/legacy/server/kbn_server.d.ts @@ -62,7 +62,7 @@ type KbnMixinFunc = (kbnServer: KbnServer, server: Server, config: any) => Promi type Unpromise = T extends Promise ? U : T; export default class KbnServer { public readonly newPlatform: { - start: { + setup: { core: { elasticsearch: ElasticsearchServiceSetup; }; diff --git a/src/legacy/ui/public/new_platform/new_platform.ts b/src/legacy/ui/public/new_platform/new_platform.ts index 7c6e5380cea1a..d6ea22e4e703f 100644 --- a/src/legacy/ui/public/new_platform/new_platform.ts +++ b/src/legacy/ui/public/new_platform/new_platform.ts @@ -38,18 +38,18 @@ interface CoreSetup { } const runtimeContext = { - start: { + setup: { core: null as CoreSetup | null, plugins: {}, }, }; export function __newPlatformInit__(core: CoreSetup) { - if (runtimeContext.start.core) { + if (runtimeContext.setup.core) { throw new Error('New platform core api was already initialized'); } - runtimeContext.start.core = core; + runtimeContext.setup.core = core; } export function getNewPlatform() {