Skip to content

Commit

Permalink
fix typescript warning (#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
renawolford6 committed Jul 21, 2020
1 parent e69bbfc commit 97a98cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/axios-typescript/libs/useRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function useRequest<Data = unknown, Error = unknown>(
initialData: initialData && {
status: 200,
statusText: 'InitialData',
config: request,
config: request!,
headers: {},
data: initialData
}
Expand Down

0 comments on commit 97a98cc

Please sign in to comment.