build: Use prettier for typescript

Stop ignoring .ts files in prettier and fix existing issues.
This commit is contained in:
Ralph Hopman
2025-01-15 11:59:30 +00:00
committed by Adam Saghy
parent 9d6cf1514a
commit cac1d11ad7
1812 changed files with 22516 additions and 16862 deletions
+2 -7
View File
@@ -12,11 +12,10 @@ import { Observable } from 'rxjs';
providedIn: 'root'
})
export class SearchService {
/**
* @param {HttpClient} http Http Client to send requests.
*/
constructor(private http: HttpClient) { }
constructor(private http: HttpClient) {}
/**
* @param {string} query Query String
@@ -24,11 +23,7 @@ export class SearchService {
* @returns {Observable<any>} Search Results.
*/
getSearchResults(query: string, resource: string): Observable<any> {
const httpParams = new HttpParams()
.set('exactMatch', 'false')
.set('query', query)
.set('resource', resource);
const httpParams = new HttpParams().set('exactMatch', 'false').set('query', query).set('resource', resource);
return this.http.get('/search', { params: httpParams });
}
}