We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is a:
Which concerns:
I am trying to use $PropertyType to check the property of an extended class. The following code illustrates the issue:
$PropertyType
class AbstractClass { prop: any; }; type ClassProp<C: AbstractClass> = $PropertyType<C, 'prop'>; class ConcreteClass extends AbstractClass { prop: number; } const i = 12; (i: ClassProp<ConcreteClass>);
Running this example in the Try Flow-Runtime interface throws the following error: Can only intersect object types.
Can only intersect object types
Parity with Flow: The same code runs without errors in Flow
It also correctly errors on failures against the extended type.
Tried in the current Try Flow-Runtime interface, assuming this is v0.17.0
v0.17.0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This is a:
Which concerns:
What is the current behaviour?
I am trying to use
$PropertyType
to check the property of an extended class. The following code illustrates the issue:Running this example in the Try Flow-Runtime interface throws the following error:
Can only intersect object types
.What is the expected behaviour?
Parity with Flow: The same code runs without errors in Flow
It also correctly errors on failures against the extended type.
Which package versions are you using?
Tried in the current Try Flow-Runtime interface, assuming this is
v0.17.0
The text was updated successfully, but these errors were encountered: