Skip to content

Commit

Permalink
fix variables not nullable in request callback typescript definition (#…
Browse files Browse the repository at this point in the history
…143)

Co-authored-by: Tom Darshan <[email protected]>
  • Loading branch information
tomdardev and Tom Darshan authored Jun 27, 2024
1 parent ec5826e commit 94b46b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export interface HttpBackendOptions {
requestOptions?: RequestInit | ((payload: {} | string) => RequestInit);
}

type RequestCallback = (error: any, response: RequestResponse) => void;
type RequestCallback = (error: any | undefined | null, response: RequestResponse | undefined | null) => void;

interface RequestResponse {
status: number;
Expand Down

0 comments on commit 94b46b7

Please sign in to comment.