fix: type errors for tests (#12456)

This commit is contained in:
karanh37 2023-07-17 13:58:06 +05:30 committed by GitHub
parent 27a0c9e802
commit 9147bb01e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,16 +16,19 @@ import { ReactNode } from 'react';
import { EntityReference } from '../../generated/entity/type'; import { EntityReference } from '../../generated/entity/type';
import { TagLabel } from '../../generated/type/tagLabel'; import { TagLabel } from '../../generated/type/tagLabel';
import { import {
ContainerSearchSource,
DashboardSearchSource, DashboardSearchSource,
ExploreSearchSource, ExploreSearchSource,
GlossarySearchSource, GlossarySearchSource,
MlmodelSearchSource, MlmodelSearchSource,
PipelineSearchSource,
QuerySearchSource, QuerySearchSource,
SearchHitBody, SearchHitBody,
TableSearchSource, TableSearchSource,
TagClassSearchSource, TagClassSearchSource,
TeamSearchSource, TeamSearchSource,
TestCaseSearchSource, TestCaseSearchSource,
TopicSearchSource,
UserSearchSource, UserSearchSource,
} from '../../interface/search.interface'; } from '../../interface/search.interface';
import { ExploreSearchIndex } from '../Explore/explore.interface'; import { ExploreSearchIndex } from '../Explore/explore.interface';
@ -44,6 +47,9 @@ export type SourceType = (
TableSearchSource, TableSearchSource,
Fields | 'usageSummary' | 'database' | 'databaseSchema' | 'tableType' Fields | 'usageSummary' | 'database' | 'databaseSchema' | 'tableType'
> >
| Pick<TopicSearchSource, Fields>
| Pick<ContainerSearchSource, Fields>
| Pick<PipelineSearchSource, Fields>
| Pick<DashboardSearchSource | MlmodelSearchSource, Fields | 'usageSummary'> | Pick<DashboardSearchSource | MlmodelSearchSource, Fields | 'usageSummary'>
| Pick< | Pick<
Exclude< Exclude<