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

feat: add typescript declaration file #29

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rickstaa
Copy link

This pull request adds typescript type definitions.

@rickstaa rickstaa force-pushed the add_ts_declaration_files branch from f2d4e93 to a895439 Compare October 26, 2021 10:46
@rickstaa rickstaa force-pushed the add_ts_declaration_files branch from a895439 to d824cb0 Compare October 26, 2021 11:55
@rickstaa
Copy link
Author

@bsonntag I'm currently trying to clean up my project dependencies and noticed that this pull request has not yet been merged. Are there things that have to be changed before this can be merged?

@ChocolateLoverRaj
Copy link

@rickstaa The other way is to make a pull request to https://github.com/DefinitelyTyped/DefinitelyTyped. I can do it if you want.

Comment on lines +7 to +11
settings: {
react: {
version: '999.999.999',
},
},

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this?

Copy link
Author

@rickstaa rickstaa Jan 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ChocolateLoverRaj Thanks a lot for looking at this pull request and for offering to merge it into https://github.com/DefinitelyTyped/DefinitelyTyped.

Why this?

Good catch! Sorry, I should have added a comment for that hotfix. I added it to get rid of the following warning:

Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.

This warning is caused since @bsonntag uses eslint-plugin-react in his @bsonntag/eslint-config eslint config package and this is a non react package:

"@bsonntag/eslint-config": "^0.6.0",

An explanation can be found in this issue. It should not be needed if you are planning to merge the type definitions into https://github.com/DefinitelyTyped/DefinitelyTyped. 👍🏻

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

Successfully merging this pull request may close these issues.

2 participants