Skip to content

Commit 688c5a4

Browse files
committed
fix(api): make response field required
1 parent 8908dcc commit 688c5a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export type APIRequestInit = Omit<RequestInit, "method" | "body"> & {
77
export type APIPayload<TResponse = unknown> =
88
| {
99
status: "success";
10-
response?: TResponse;
10+
response: TResponse;
1111
}
1212
| {
1313
status: "error";

0 commit comments

Comments
 (0)