-
-
Notifications
You must be signed in to change notification settings - Fork 121
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
Add TypeScript definitions #138
Conversation
Make sure you follow https://github.com/sindresorhus/typescript-definition-style-guide |
I'm sorry for missing several conventions guides and thank you for pointing it out. May I request code review again to find out if there are points that I'm still missing? |
@jopemachine Would you mind upgrading xo to |
@jopemachine You could go through the Testing to learn how to use tsd to write tests for your TypeScript type definitions. |
@LitoMore, @sindresorhus I appreciate for detailed code reviews :) I upgraded xo to And updated type declaration, added In tsd test, to test functions with return type void, I added If we don't need to test void returning functions, just let me know, I will remove the comment and tests. |
It seems that update-notifier in xo So test fails in Node 8. May I ask how I should handle this? |
@jopemachine Feel free to drop Node.js 8 from GitHub Actions. It seems the got@9 blocked us using Node.js 10 or higher. We could solve this problem later (in another PR) if you are interested. |
Of course, I'm happy to have the opportunity to contribute to OSS. It seems that |
@jopemachine Yes. Let's discuss this in the future pull request. |
|
Add typescript definitions
Thanks for the quick reply!
Here is the PR.
Ok, I will try to do a pull request to add types to cache-conf.
Related
Fixes #127