-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
fix: ensure all packages correctly downlevel TS files #9715
Conversation
@@ -51,7 +51,8 @@ export default class CustomConsole extends Console { | |||
); | |||
} | |||
|
|||
assert(value: unknown, message?: string | Error): asserts value { | |||
// use `asserts` when https://github.com/sandersn/downlevel-dts/issues/32 is fixed | |||
assert(value: unknown, message?: string | Error): 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.
void
matches the node core types as well, so should be fine
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
In #9705 I just tested with
pretty-format
- seems I forgot to update a fewpackage.json
s. This also uncovered a few missingtypes
fields as well, so fixing those at the same time.I also rolled back on syntax that downlevel doesn't support and worked around another bug.
Fixes #9714.
Test plan
I've now verified
typescript@3.4
can compile the entirejest
package, not justpretty-format
and what that pulls in