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
<button data-idx="1" bind:tap="callback" />
callback: onTapCallback<{idx: number}> (ev) { // 就能更舒服得使用 ev.dataset.idx }
不知道有没有加这些回调的类型支持的打算?
The text was updated successfully, but these errors were encountered:
在尝试解决。。是否有更好的解决方案可以推荐吗?
Sorry, something went wrong.
如果只是d.ts(类型声明文件)的话貌似没有什么特别好的办法了; 我自己的话是用ts开发的小程序项目,然后稍微弄了个修饰器增强了回调函数的类型。
d.ts
No branches or pull requests
不知道有没有加这些回调的类型支持的打算?
The text was updated successfully, but these errors were encountered: