Skip to content

Commit 3414b5a

Browse files
committed
update http-client
1 parent 299dd63 commit 3414b5a

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎libs/http-client/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"name": "@gradii/http-client",
3-
"version": "0.2.0"
3+
"version": "0.2.1"
44
}

‎libs/http-client/src/lib/client.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ import { HttpRequest } from './request';
1111
import { HttpEvent, HttpResponse } from './response';
1212

1313
type Body = HttpRequest<any>['body'];
14-
type Params = ConstructorParameters<typeof HttpParams>[0] | HttpParams | null;
15-
type Headers = ConstructorParameters<typeof HttpHeaders>[0] | HttpHeaders;
14+
type Params = HttpParams
15+
| {[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>} | null;
16+
type Headers = HttpHeaders | {[header: string]: string | string[]};
1617
type ResponseType = HttpRequest<any>['responseType'];
1718

1819
interface RequestOptions<T extends ResponseType = ResponseType> {

‎libs/nest-http-client/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"name": "@gradii/nest-http-client",
33
"version": "0.2.0",
44
"dependencies": {
5-
"@gradii/http-client": "^0.2.0"
5+
"@gradii/http-client": "^0.2.1"
66
}
77
}

0 commit comments

Comments
 (0)