Skip to content

Commit c9afb3b

Browse files
committed
docs(changeset): Generate null type and return null data for the empty responses instead of an empty object {}.
1 parent dd33450 commit c9afb3b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/red-mirrors-add.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@openapi-qraft/tanstack-query-react-plugin': minor
3+
'@openapi-qraft/test-fixtures': minor
4+
'@openapi-qraft/react': minor
5+
---
6+
7+
Generate `null` type and return `null` data for the empty (204) responses instead of an empty object `{}`.

.changeset/strong-mugs-fry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ Generate types for empty responses
88

99
Now, for both successful and error responses, we generate types for all possible response outcomes.
1010
For instance, if a 204 (No Content) response is possible, we now explicitly generate a type for it
11-
(represented as `undefined` in the generated code) instead of omitting it.
11+
(represented as `null` in the generated code) instead of omitting it.

0 commit comments

Comments
 (0)