You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As @shibukawa suggested, exported classes should be extendable by using ordinary JavaScript.
note: the example right below is known not to work, for the current proposal see #153 (comment)
// in foo.jsx
__export__ class Base {
function say() : void {
log "base";
}
}
// in JavaScript
var Base = JSX.require("foo.jsx").Base;
function Derived() {
}
Derived.prototype = new Base;
Derived.prototype.say = function () {
log "derived";
};
The text was updated successfully, but these errors were encountered:
Sorry to change my words but it is impossible to extend a JSX class using ordinary JavaScript (see the example in prev. comment; the method say belonging to an instance is sometimes known to be __export__ed and sometimes not). We need to provide a helper function.
As @shibukawa suggested, exported classes should be extendable by using ordinary JavaScript.
note: the example right below is known not to work, for the current proposal see #153 (comment)
The text was updated successfully, but these errors were encountered: