diff --git a/src/plugins/workspace/server/index.ts b/src/plugins/workspace/server/index.ts index fe44b4d71757..3a8e9ca50fcc 100644 --- a/src/plugins/workspace/server/index.ts +++ b/src/plugins/workspace/server/index.ts @@ -18,4 +18,4 @@ export const config: PluginConfigDescriptor = { schema: configSchema, }; -export { WorkspaceFindOptions } from './types'; +export { WorkspaceFindOptions, WorkspacePluginSetup } from './types'; diff --git a/src/plugins/workspace/server/plugin.ts b/src/plugins/workspace/server/plugin.ts index e4ed75bad615..bea139facb12 100644 --- a/src/plugins/workspace/server/plugin.ts +++ b/src/plugins/workspace/server/plugin.ts @@ -10,13 +10,13 @@ import { Logger, CoreStart, } from '../../../core/server'; -import { IWorkspaceClientImpl } from './types'; +import { IWorkspaceClientImpl, WorkspacePluginSetup } from './types'; import { WorkspaceClient } from './workspace_client'; import { registerRoutes } from './routes'; import { WORKSPACE_CONFLICT_CONTROL_SAVED_OBJECTS_CLIENT_WRAPPER_ID } from '../common/constants'; import { WorkspaceConflictSavedObjectsClientWrapper } from './saved_objects/saved_objects_wrapper_for_check_workspace_conflict'; -export class WorkspacePlugin implements Plugin<{}, {}> { +export class WorkspacePlugin implements Plugin { private readonly logger: Logger; private client?: IWorkspaceClientImpl; private workspaceConflictControl?: WorkspaceConflictSavedObjectsClientWrapper; diff --git a/src/plugins/workspace/server/types.ts b/src/plugins/workspace/server/types.ts index 0f60597a7a8a..92848279f360 100644 --- a/src/plugins/workspace/server/types.ts +++ b/src/plugins/workspace/server/types.ts @@ -117,3 +117,7 @@ export type IResponse = success: false; error?: string; }; + +export interface WorkspacePluginSetup { + client: IWorkspaceClientImpl; +}