Skip to content

Commit

Permalink
Revert type and export
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Ho <[email protected]>
  • Loading branch information
derek-ho committed Jul 25, 2024
1 parent 8022171 commit 5aa4ba2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ import {
getDataSourceFromUrl,
} from './utils/datasource-utils';

export async function hasApiPermission(core: CoreSetup): Promise<boolean | undefined> {
async function hasApiPermission(core: CoreSetup): Promise<boolean | undefined> {
try {
const permissions = await core.http.get(API_ENDPOINT_PERMISSIONS_INFO);
return permissions.has_api_access || false;
Expand Down
6 changes: 1 addition & 5 deletions public/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ import {
SavedObjectsManagementPluginStart,
} from '../../../src/plugins/saved_objects_management/public';
import { ManagementOverViewPluginSetup } from '../../../src/plugins/management_overview/public';
import {
DataSourcePluginSetup,
DataSourcePluginStart,
} from '../../../src/plugins/data_source/public/types';
import { DataSourcePluginStart } from '../../../src/plugins/data_source/public/types';
import { DataSourceManagementPluginSetup } from '../../../src/plugins/data_source_management/public';

// eslint-disable-next-line @typescript-eslint/no-empty-interface
Expand All @@ -34,7 +31,6 @@ export interface SecurityPluginSetupDependencies {
savedObjectsManagement: SavedObjectsManagementPluginSetup;
managementOverview?: ManagementOverViewPluginSetup;
dataSourceManagement?: DataSourceManagementPluginSetup;
dataSource?: DataSourcePluginSetup;
}

export interface Cluster {
Expand Down

0 comments on commit 5aa4ba2

Please sign in to comment.