-
-
Notifications
You must be signed in to change notification settings - Fork 31
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没有声明文件 #161
Comments
加入todo |
什么意思,说详细点呗... |
他的意思应该是我这个js写的包没有ts的类型提示吧 |
我是说你这个详细点,没明白这是应该怎么做?自己写个类型注释吗? |
我确实还没搞清楚怎么做 如果你有什么好办法的话…😘 |
写个.d.ts,懒得手写可以自动生成一个。 |
http://www.patrickzhong.com/TypeScript/zh/declaration-files/index.html |
目前这整个项目是js的也就是说我还不能直接生成,首先可能要把一部分文件变成ts,然后看看有没有什么现成的bilibili api types |
js源代码不用动,单独写一个声明文件就行。现在的新项目基本全是ts的,没有类型提示很难用。 |
有typescript兼容的计划吗? |
请求增加ts声明文件
The text was updated successfully, but these errors were encountered: