fix generic type for get method
This commit is contained in:
parent
4e84610f65
commit
56ef15eecb
@ -32,8 +32,8 @@ export abstract class GenericService<I> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Validate()
|
@Validate()
|
||||||
getAll<R = I>(modelPath = this._defaultModelPath): Observable<R[]> {
|
getAll<R = I[]>(modelPath = this._defaultModelPath): Observable<R> {
|
||||||
return this._http.get<R[]>(`/${encodeURI(modelPath)}`, {
|
return this._http.get<R>(`/${encodeURI(modelPath)}`, {
|
||||||
headers: HeadersConfiguration.getHeaders({ contentType: false }),
|
headers: HeadersConfiguration.getHeaders({ contentType: false }),
|
||||||
observe: 'body',
|
observe: 'body',
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user