flow-typed Questions
1
Solved
flow-typed is a CLI tool that provides auto-discovery of flow type definitions for installed JS packages (and other things).
I usually use TypeScript over Flow and often find myself installing pack...
Mazer asked 11/10, 2020 at 20:3
2
Solved
I am getting following when trying to install flow-types
yarn run flow-typed install
Error
• Found 29 dependencies in package.json to install libdefs for. Searching...
• flow-typed cache not found...
Dyad asked 15/1, 2021 at 7:51
2
Solved
I am building a nodeJS app using Flow, and I need to extend the default express annotation for express$Request to accommodate other fields that I tack on, like .user and .session.
unfortunately, w...
Shel asked 20/6, 2017 at 23:30
4
Solved
I am using Flow: Static type checking library for react front end application, it throws "cannot resolve" for internal imports from src directory:
Example in file at path: src/abc/def/ghi/hello.js...
Ulotrichous asked 1/10, 2018 at 22:34
4
Solved
I have a npm package of React components which are using flow for type-checking.
It would be useful for the users of my components to have access to my flow types. However at the moment I am compi...
Temperature asked 19/5, 2020 at 11:31
0
Consider puppeteer's launch() method. The usage guidelines in the Puppeteer readme recommend to use const puppeteer = require('puppeteer') and then puppeteer.launch():
const puppeteer = require('...
Rustler asked 29/8, 2019 at 7:32
1
Solved
I'm using flowtypes in my project and getting third-party library definitions via flow-typed CLI.
Running flow-typed install puts in /flow-typed/npm folder all definitions founded for dependencies...
Argo asked 23/1, 2019 at 12:25
1
Solved
As an example, let's say I have a class that only emits three possible events – 'pending' or 'success' or 'failure'. Additionally, the type of the argument received in the eventHandler depends on w...
Peculiar asked 21/3, 2018 at 16:17
2
Solved
I just added Flow to my Create-React-App project, and while converting some of my calculation code to flow-typed, I encountered this error with a destructured "object as params"
Original sig:
cal...
Nullity asked 12/1, 2018 at 18:3
1
I get these Flow errors in my test files:
identifier `test`
Could not resolve name
identifier `expect`
Could not resolve name
I've installed the Jest libdef from flow-typed but it doesn't make ...
Infuse asked 14/9, 2017 at 11:21
1
I am trying to write a Javascript project with strict flow typing everywhere. I also have a dependency on big-integer. There are no preset flow annotations in flow-typed unfortunately and Google is...
Comose asked 24/12, 2017 at 23:8
1
Solved
Some libdefs in flow-typed respository have types, started with the dollar sign, like $AxiosXHR:
It looks like it declares globally available type, but I am not sure, and I haven't found any doc...
Cherian asked 18/12, 2017 at 8:8
1
I'm using Flow to help author a JS project. If I want to provide a libdef file to supplement it do I need to create it manually, or am I able to execute some magic command that I'm not aware of yet...
Forcier asked 5/4, 2017 at 15:16
2
Solved
I'm currently learning Flow by applying it to an existing project and looking to annotate function parameters as a Moment.JS objects.
Using flow-typed I was able to install a library definition f...
Thirtieth asked 27/3, 2017 at 1:37
1
Solved
Is it possible to flow type check an observable? I am using redux-observable to build out epics that watch for actions to dispatch and, if there is a match, they run some async code. The action$ ar...
Dives asked 18/2, 2017 at 12:28
1
© 2022 - 2024 — McMap. All rights reserved.