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
So when using typescript declare on a class member, I get the following unrelated flow error:
The 'declare' modifier is only allowed when the 'allowDeclareFields' option of @babel/plugin-transform-flow-strip-types or @babel/preset-flow is enabled.
Code to reproduce:
class Base {
prop1: string | number = 0;
}
class Derived extends Base {
declare prop1: string;
}
The text was updated successfully, but these errors were encountered:
Hey,
So when using typescript declare on a class member, I get the following unrelated flow error:
Code to reproduce:
The text was updated successfully, but these errors were encountered: