File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 1+ import { ContributionEntity } from "@dzcode.io/models/dist/contribution" ;
2+ import { ContributorEntity } from "@dzcode.io/models/dist/contributor" ;
13import { GeneralResponse } from "src/app/types" ;
4+ import { MultiSearchResponse } from "meilisearch" ;
5+ import { ProjectEntity } from "@dzcode.io/models/dist/project" ;
26
37export interface GetSearchResponse extends GeneralResponse {
4- searchResults : Array < SearchItem > ;
8+ searchResults : MultiSearchResponse <
9+ ProjectEntity | ContributionEntity | ContributorEntity
10+ > ;
511}
612
7- export interface SearchItem {
8- id : string ;
9- title : string ;
10- runId : string ;
11- }
13+ export type SearchItem = ProjectEntity | ContributionEntity | ContributorEntity ;
1214
1315export type SearchType = "project" | "contribution" | "contributor" ;
You can’t perform that action at this time.
0 commit comments