-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
More TS #301
More TS #301
Conversation
1fd229c
to
bfeebc9
Compare
Working around microsoft/TypeScript#26382, which will likely never get solved.
This seems to be the way you're supposed to write overloads, but it does feel wrong.
The inferred type is more specific.
/** | ||
* @param {Template} template | ||
* @param {string} commit | ||
*/ |
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.
Should this not a return type annotation? (Same of other functions in this file)?
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.
They should, but I used the IDE inferer to get started, which skips them, unfortunately, and I didn't realize it until I was done.
TS infers them though, so I think it can be left for a follow-up.
* @param {string} dest | ||
* @param {string} elmModulePath |
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 think this would be more accurate:
* @param {Path} dest
* @param {Path} elmModulePath
Same for elmBinary
below and other places in this file.
This is just a shorthand for all of the strict rules the TS team feels are ergonomic. I disabled `useUnknownInCatch` variables for now, though.
tsconfig changes can affect types, which affect typed linting results.
New dependencies detected. Learn more about Socket for GitHub ↗︎
|
Woohoo! This is a great step forward! |
Address review comments from jfmengels#301.
Address review comments from jfmengels#301.
Address review comments from jfmengels#301.
Slowly, steadily, yet always onward, pushing forward, toward the goal.
In other words, more types.
Or rather, better types, as this was mostly fixing mistakes.(Nope, I ended up just finishing #125)Resolves #125.