Skip to content

Commit 54b00c7

Browse files
committed
fix(dfx-openapi): lib api changes
1 parent 9ac2812 commit 54b00c7

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.prettierignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@ package.json
99
pnpm-lock.yaml
1010
**/CHANGELOG.md
1111

12-
/.nx/workspace-data
12+
/.nx/workspace-data
13+
14+
/libs/dfx-bootstrap-icons/assets/
15+
/libs/dfx-bootstrap-icons/src/lib/generated/

libs/dfx-openapi/src/lib/client.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ type ClientMethod<Paths extends Record<string, Record<HttpMethod, any>>, Method
6262
...init: InitParam<Init>
6363
) => Observable<HttpClientResponse<Paths[Path][Method], Media>>;
6464

65-
export type HttpClientResponse<T, Media extends MediaType> = SuccessResponse<ResponseObjectMap<T>, Media>;
65+
export type HttpClientResponse<T extends Record<string | number, any>, Media extends MediaType> = SuccessResponse<
66+
ResponseObjectMap<T>,
67+
Media
68+
>;
6669

6770
export type QuerySerializer<T> = (
6871
query: T extends { parameters: any } ? NonNullable<T['parameters']['query']> : Record<string, unknown>,

0 commit comments

Comments
 (0)