innocces / taro-hooks

Hooks Library for Taro

Home Page:https://next-taro-hooks.pages.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bug: 2.0版本useRequest类型定义有问题

victorWuxz opened this issue · comments

版本

  • taro-hooks: 2.0
  • taro: 3.2
  • node: 16
  • npm: 8
  • OS: mac
  • Browser:

复现步骤

引入就报错

你期望的现象?

类型提示正确

现有的现象?

image

复现 repo(最好可以提供一个复现的 repo)

welcome discuss in wechat:

Hello @victorWuxz. In order to facilitate location and troubleshooting, we need you to provide a realistic example. You can create a taro project by clicking here and provide the GitHub warehouse address and reproduce examples.

你好 @victorWuxz, 为了方便定位和排查问题,我们需要你提供一个重现实例。你可以通过点击 此处 创建一个 Taro 项目并提供 GitHub 仓库地址和重现实例。

=。- 这边长时间没有提供repo. 暂时关闭了. 可以参考最小示例查看一下是否写法上有问题. 若依然有问题请附上复现repo重新打开即可