diff --git a/.changeset/silly-apes-know.md b/.changeset/silly-apes-know.md new file mode 100644 index 000000000..eb6d63071 --- /dev/null +++ b/.changeset/silly-apes-know.md @@ -0,0 +1,5 @@ +--- +"openapi-typescript-helpers": patch +--- + +fix SuccessResponseJSON and ErrorResponseJSON helpers diff --git a/packages/openapi-typescript-helpers/index.d.ts b/packages/openapi-typescript-helpers/index.d.ts index fad9b4ca6..d8e67c501 100644 --- a/packages/openapi-typescript-helpers/index.d.ts +++ b/packages/openapi-typescript-helpers/index.d.ts @@ -131,13 +131,13 @@ export type ErrorResponse = FilterKeys< >; /** Return first JSON-like 2XX response from a path + HTTP method */ -export type SuccessResponseJSON = JSONLike>>; +export type SuccessResponseJSON = SuccessResponse>; /** Return first JSON-like 5XX or 4XX response from a path + HTTP method */ -export type ErrorResponseJSON = JSONLike>>; +export type ErrorResponseJSON = ErrorResponse>; /** Return JSON-like request body from a path + HTTP method */ -export type RequestBodyJSON = JSONLike, "content">>; +export type RequestBodyJSON = FilterKeys, "content">; // Generic TS utils