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
Flow 0.75.0 reports 'Deprecated $call syntax' error with Axios #2405
Comments
Getting this with the styled-components flow-typed package.
Can't find any documentation on what the callable property syntax is |
@madole you can read a bit more about it here: https://github.com/facebook/flow/releases/tag/v0.75.0 AFAICT, |
I did try that as well without any luck. Ended up hacking the type, not even sure it's doing the same thing now :( |
thanks all! i'm facing this error too and also even for packages other than axios. it is useful until reflect fix to type definition file. |
Looking at the tests: https://github.com/facebook/flow/blob/40a72f81e2f29e5a86a62738be036a852931a456/tests/call_properties/internal_slot.js
EDIT: nevermind. see: #2405 (comment) |
Hmm, naive |
@jeremejevs yea I kinda realized this. I had to do something weird like this to make flow happy: declare export default {
css: TaggedTemplateLiteral<Array<Interpolation>>,
...$npm$styledComponents$StyledComponentsComponentList,
...$npm$styledComponents$StyledComponentsNativeComponentList,
} & {
[[call]]: $npm$styledComponents$Call<ComponentListKeys>
} |
@dashed thank you so much for your mention! |
Looks like this was fixed by #2456 |
Sweet, closing. |
Hey there! I'm getting the following error regarding the
$call
(lowercase c) syntax. I'm not familiar with this syntax and there's nothing in the flow docs about this. The only mention of it I could find was an old github issue in the flow repo and it wasn't helpful.This started happening when I upgraded flow from 0.74.0 to 0.75.0.
The text was updated successfully, but these errors were encountered: