Skip to content

Commit

Permalink
type: useRequest url optional
Browse files Browse the repository at this point in the history
  • Loading branch information
brickspert committed Jul 11, 2021
1 parent 7b026c0 commit c2b4ccb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/use-request/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export type Subscribe<R, P extends any[]> = (data: FetchResult<R, P>) => void;
export type Mutate<R> = (x: R | undefined | ((data: R) => R)) => void;

export interface RequestServiceObject extends RequestInit {
readonly url: string;
url?: string;
[key: string]: any; // backward compatibility
}
export type RequestService = string | RequestServiceObject;
Expand Down

0 comments on commit c2b4ccb

Please sign in to comment.