-
-
Notifications
You must be signed in to change notification settings - Fork 5.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
[helpers TS conversion] subclasses #16578
base: main
Are you sure you want to change the base?
Conversation
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/57232 |
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.
Thanks!
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.
Thanks.
function Wrapper() { | ||
// @ts-expect-error -- where are sure Class is a function here |
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.
// @ts-expect-error -- where are sure Class is a function here | |
// @ts-expect-error -- we are sure Class is a function here |
var _cache = typeof Map === "function" ? new Map() : undefined; | ||
|
||
_wrapNativeSuper = function _wrapNativeSuper(Class) { | ||
// @ts-expect-error -- test |
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.
// @ts-expect-error -- test | |
// @ts-expect-error -- reuse function id for helper size |
Migrate subclasses helpers to typescript (callSuper, inherits, inheritsLoose, isNativeFunction, wrapNativeSuper)