Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
eokoneyo committed Oct 8, 2024
1 parent f2235ed commit 6b5928e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
* 2.0.
*/

import type { SecurityPluginStart } from '../plugin';
import type { SecurityPluginSetup } from '../plugin';

export type SecurityLicense = SecurityPluginStart['license'];
export type SecurityLicense = SecurityPluginSetup['license'];
4 changes: 0 additions & 4 deletions x-pack/packages/security/plugin_types_public/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,4 @@ export interface SecurityPluginStart {
* @deprecated in favor of Core's `userProfile` service.
*/
userProfiles: UserProfileAPIClient;
/**
* Exposes information about the available security features under the current license.
*/
license: SecurityLicense;
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { KibanaRenderContextProvider } from '@kbn/react-kibana-context-render';
import type {
PrivilegesAPIClientPublicContract,
RolesAPIClient,
SecurityPluginStart,
SecurityLicense,
} from '@kbn/security-plugin-types-public';
import { RedirectAppLinks } from '@kbn/shared-ux-link-redirect-app';
import { Route, Router, Routes } from '@kbn/shared-ux-router';
Expand All @@ -38,7 +38,7 @@ export interface CreateParams {
eventTracker: EventTracker;
getPrivilegesAPIClient: () => Promise<PrivilegesAPIClientPublicContract>;
isServerless: boolean;
getSecurityLicense: () => Promise<SecurityPluginStart['license']>;
getSecurityLicense: () => Promise<SecurityLicense>;
}

export const spacesManagementApp = Object.freeze({
Expand Down

0 comments on commit 6b5928e

Please sign in to comment.