Skip to content

Commit 476beaa

Browse files
authored
Merge pull request #145 from Zindiks/claude/fix-error-handling-01SD6C6SKooxMSMccbPKT53h
fix: resolve TypeScript type errors in search service
2 parents a4ba756 + b4a32b2 commit 476beaa

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

api/src/modules/search/search.service.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
import { SearchRepository } from "./search.repository";
2-
import { SearchQuery, SearchResponse } from "./search.schema";
2+
import {
3+
SearchQuery,
4+
SearchResponse,
5+
BoardResult,
6+
ListResult,
7+
CardResult,
8+
} from "./search.schema";
39

410
export class SearchService {
511
private readonly searchRepository: SearchRepository;
@@ -14,7 +20,11 @@ export class SearchService {
1420
async search(params: SearchQuery): Promise<SearchResponse> {
1521
const { query, type = "all" } = params;
1622

17-
let results = {
23+
let results: {
24+
boards: BoardResult[];
25+
lists: ListResult[];
26+
cards: CardResult[];
27+
} = {
1828
boards: [],
1929
lists: [],
2030
cards: [],

0 commit comments

Comments
 (0)