Skip to content

Commit

Permalink
improve typing
Browse files Browse the repository at this point in the history
  • Loading branch information
gergoabraham committed Aug 5, 2024
1 parent d9e7cc6 commit 6213420
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions x-pack/test/security_solution_endpoint/configs/config.base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { Config } from '@kbn/test';
import { FtrConfigProviderContext } from '@kbn/test';
import { SecuritySolutionEndpointRegistryHelpers } from '../../common/services/security_solution';
import type { TargetTags } from '../target_tags';
import { PageObjects } from '../page_objects';
import { Services } from '../services';

export const SUITE_TAGS: Record<
'ess' | 'serverless',
Expand Down Expand Up @@ -40,8 +42,8 @@ export const generateConfig = async ({
junitReportName: string;
kbnServerArgs?: string[];
target: keyof typeof SUITE_TAGS;
services: any;
pageObjects: any;
services: Services;
pageObjects: PageObjects;
}): Promise<Config> => {
const { readConfigFile } = ftrConfigProviderContext;
// services are not ready yet, so we need to import them here
Expand Down
2 changes: 2 additions & 0 deletions x-pack/test/security_solution_endpoint/page_objects/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@ export const svlPageObjects = {

svlCommonPage: SvlCommonPageProvider,
};

export type PageObjects = typeof pageObjects | typeof svlPageObjects;
2 changes: 2 additions & 0 deletions x-pack/test/security_solution_endpoint/services/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,5 @@ export const svlServices = {
svlCommonApi: SvlCommonApiServiceProvider,
svlUserManager: SvlUserManagerProvider,
};

export type Services = typeof services | typeof svlServices;

0 comments on commit 6213420

Please sign in to comment.