Skip to content

Commit

Permalink
fix: Remove the fact that items in HTTP responses can be null (#1132
Browse files Browse the repository at this point in the history
)

See kumahq/kuma#6639 (specifically kumahq/kuma#6639 (comment)) and kumahq/kuma#6648

I'm guessing there are a load of places where we no longer need null guards anymore. I haven't gone through and amended if there are as I'm guessing these will eventually be removed during natural tech debt work.

Signed-off-by: John Cowen <john.cowen@konghq.com>
  • Loading branch information
johncowen authored Jun 27, 2023
1 parent c14df74 commit cdd08c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* ```
*/
export interface ApiListResponse<ResourceType> {
items: ResourceType[] | null
items: ResourceType[]
total: number
}

Expand Down

0 comments on commit cdd08c6

Please sign in to comment.