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