We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a4ba756 + b4a32b2 commit 476beaaCopy full SHA for 476beaa
api/src/modules/search/search.service.ts
@@ -1,5 +1,11 @@
1
import { SearchRepository } from "./search.repository";
2
-import { SearchQuery, SearchResponse } from "./search.schema";
+import {
3
+ SearchQuery,
4
+ SearchResponse,
5
+ BoardResult,
6
+ ListResult,
7
+ CardResult,
8
+} from "./search.schema";
9
10
export class SearchService {
11
private readonly searchRepository: SearchRepository;
@@ -14,7 +20,11 @@ export class SearchService {
14
20
async search(params: SearchQuery): Promise<SearchResponse> {
15
21
const { query, type = "all" } = params;
16
22
17
- let results = {
23
+ let results: {
24
+ boards: BoardResult[];
25
+ lists: ListResult[];
26
+ cards: CardResult[];
27
+ } = {
18
28
boards: [],
19
29
lists: [],
30
cards: [],
0 commit comments