Skip to content
New issue

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

typescript下Events 类型出现未导出 #10880

Closed
xiao252 opened this issue Dec 10, 2021 · 0 comments · Fixed by #10909 or #10972
Closed

typescript下Events 类型出现未导出 #10880

xiao252 opened this issue Dec 10, 2021 · 0 comments · Fixed by #10909 or #10972
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Milestone

Comments

@xiao252
Copy link
Contributor

xiao252 commented Dec 10, 2021

相关平台

微信小程序

小程序基础库: 2.20.0
使用框架: React

复现步骤

import { Events } from "@tarojs/taro";

期望结果

增加Events类型的导出

实际结果

增加Events类型的导出

环境信息

Taro CLI 3.3.16 environment info:       
    System:
      OS: Windows 10
    Binaries:
      Node: 14.15.0 - F:\nvm\node\node.EXE
      Yarn: 1.22.10 - F:\nvm\node\yarn.CMD
      npm: 6.14.8 - F:\nvm\node\npm.CMD   


补充信息

目前我是这样解决的:

//taro.extend.d
...
  interface TaroStatic {
    Events:{
      new ():TaroGeneral.Events
    }
...
@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Dec 10, 2021
ZakaryCode added a commit that referenced this issue Dec 15, 2021
Chen-jj pushed a commit that referenced this issue Dec 15, 2021
@Chen-jj Chen-jj added this to the 3.3.17 milestone Dec 15, 2021
ZakaryCode added a commit that referenced this issue Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants