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没有声明文件 #161

Open
PullAndRun opened this issue Nov 6, 2022 · 10 comments
Open

typescript没有声明文件 #161

PullAndRun opened this issue Nov 6, 2022 · 10 comments

Comments

@PullAndRun
Copy link

请求增加ts声明文件

@simon300000
Copy link
Owner

加入todo

@tingshuai
Copy link

什么意思,说详细点呗...

@simon300000
Copy link
Owner

什么意思,说详细点呗...

他的意思应该是我这个js写的包没有ts的类型提示吧

@tingshuai
Copy link

tingshuai commented Feb 22, 2023

加入todo

我是说你这个详细点,没明白这是应该怎么做?自己写个类型注释吗?

@simon300000
Copy link
Owner

我确实还没搞清楚怎么做 如果你有什么好办法的话…😘

@PullAndRun
Copy link
Author

加入todo

我是说你这个详细点,没明白这是应该怎么做?自己写个类型注释吗?

写个.d.ts,懒得手写可以自动生成一个。

@PullAndRun
Copy link
Author

我确实还没搞清楚怎么做 如果你有什么好办法的话…😘

http://www.patrickzhong.com/TypeScript/zh/declaration-files/index.html

@simon300000
Copy link
Owner

目前这整个项目是js的也就是说我还不能直接生成,首先可能要把一部分文件变成ts,然后看看有没有什么现成的bilibili api types

@PullAndRun
Copy link
Author

目前这整个项目是js的也就是说我还不能直接生成,首先可能要把一部分文件变成ts,然后看看有没有什么现成的bilibili api types

js源代码不用动,单独写一个声明文件就行。现在的新项目基本全是ts的,没有类型提示很难用。

@hacxy
Copy link

hacxy commented May 3, 2024

有typescript兼容的计划吗?

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

4 participants