When a mixin has a static method that method gets copied into the mixin
target dynamically. Therefore we need to declare the type of that
method. For example, for:
class Mixin extends React.Component {
/** @param {number} x */
static method(x) {}
}
ReactSupport.declareMixin(Mixin);
class Comp extends React.Component {}
ReactSupport.mixin(Comp, Mixin);
When a mixin has a static method that method gets copied into the mixin target dynamically. Therefore we need to declare the type of that method. For example, for:
we generate: