We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const { data, error, loading } = useRequest(async(a = 1, b = 1) => { return null });
这时候 a 和 b 的类型为 any
a
b
any
The text was updated successfully, but these errors were encountered:
a 和 b 是入参,在哪里需要消费入参的类型?
Sorry, something went wrong.
const { run } = useRequest(async(a = 1, b = 1) => { return null }); // 手动调用 run 方法 const a = '1' run(a) // 这时候类型错误无提示,a 被推导成了 `any`
@crazylxr
No branches or pull requests
这时候
a
和b
的类型为any
The text was updated successfully, but these errors were encountered: