-
Notifications
You must be signed in to change notification settings - Fork 45
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
Switch to TypeScript #31
Conversation
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.
Some nitpicks, but overall I think we need to wait for @B4nan before merging.
|
||
/** | ||
* @param {object} options | ||
*/ | ||
function optionsValidationHandler(options) { | ||
export function optionsValidationHandler(options: unknown): void { |
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.
The possible options are quite well known, no?
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 aren't known upon validation. We could type asserts options it T
but it still doesn't matter as this is a hook.
cc @vladfrangu |
5cd9921
to
2ac65a6
Compare
src/hooks/http2.ts
Outdated
|
||
export function http2Hook(options: Options) { | ||
if (options.http2 && (options.url as URL).protocol !== 'http:') { | ||
// @ts-expect-error FIXME |
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.
this are still a lot of those FIXME
type comments, do you plan to resolve all of them before merging the PR? if not, we should be probably more specific instead of just saying FIXME
, at least in the actual code base (it's fine'ish in tests)
Fixed the two in The ones in The PR is good to merge if there is no more questions. |
@B4nan Friendly ping :) |
TODO after this gets merged:
Closes #21