-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 #351
Conversation
@FezVrasta is there any work required to ensure the new |
@FezVrasta wow that CLA-assistant wants a lot of permissions! Why does it need to write to my public repos? |
@@ -1,9 +1,11 @@ | |||
<!-- | |||
Thanks for your interest in contributing to Popper.js! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't remove the trailing whitespaces, they are meaningful in markdown
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my editor did that. but also this is a comment, so they're really not meaningful here: it is invisible in rendered output.
i much prefer using blank lines to create paragraphs in markdown (instead of the awkward trailing two spaces) because i always have my editor set to trim trailing whitespace.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also blank lines are visible in source so i can tell immediately that you meant to have two paragraphs.
.github/PULL_REQUEST_TEMPLATE.md
Outdated
|
||
### Make sure to | ||
|
||
1. Make sure the tests are passing, you can check it running `npm test` with Google Chrome installed; | ||
2. Add any relevant test to cover the code you have changed and/or added; | ||
3. If you change the public API, update the Typescript definitions accordingly: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't you decide to maintain them yourself? If this is still the case is rephrase this to a "nice to have but not requiree action"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'll take responsibility for this file and be the first line of defense should something go wrong, but i think it's worth adding a comment like this so folks know it exists.
if someone forgets, or has trouble editing it, ping me for help. i'll amend the note to this effect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As stated previously, I don't want to lose contributions because someone gets scared reading he needs to know TypeScript to contribute.
If the point says "If you change the public API, it would be nice to try to update the TypeScript definitions accordingly. This is not required but will help a lot." (or something similar) then I'd be happy to merge this.
Otherwise, feel free to contribute to the definitely typed project, doing so you can keep the definitions up to date and be completely independent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd be wary of contributors changing the public API at will--probably not likely to happen often, but when it does then special attention will be essential anyway.
i'll update the message to be more accomodating
@FezVrasta added a note about myself in PR template. let me know what else you'd like to see here. would be great to merge and ship a new release soon so I can consume it in Blueprint! |
ok it looks great now. I'm not sure how this new file you added gets read by TypeScript but:
|
The |
Yes sure |
released as 1.11.0 |
Fixes #345
index.d.ts
to popper package (andtypes
entry in package.json)