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

storage.d.ts使用了HTMLInputElement导致依赖dom #539

Open
GongT opened this issue Apr 9, 2018 · 3 comments
Open

storage.d.ts使用了HTMLInputElement导致依赖dom #539

GongT opened this issue Apr 9, 2018 · 3 comments
Assignees

Comments

@GongT
Copy link
Contributor

GongT commented Apr 9, 2018

[email protected]

虽然并不是大问题

lib必须加dom才能编译,但我这个是纯node项目

@leeyeh
Copy link
Contributor

leeyeh commented Apr 9, 2018

除了换成 any,你有什么更好的建议吗, Captcha#bind 方法确实是只有在浏览器环境下可以用。

@GongT
Copy link
Contributor Author

GongT commented Apr 10, 2018

终极解决办法是把各个功能拆成小包?顺便解决太大的问题。。

(我去试试把.d.ts分成好2个能不能解决

@cheese-git
Copy link

同样遇到这个问题…… 希望优化一下类型定义这块,现在 ts 用的人越来越多了

@leeyeh leeyeh self-assigned this Nov 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants