flow
flow copied to clipboard
Adds static typing to JavaScript to improve developer productivity and code quality.
We have a lot of reports on unsoundness issues. This issue categorizes them into the underlying cause. - [ ] Unsound literal types - #8972 - #8607 - #8593 -...
I used an example from the MDN pages for IndexedDB, adding some types and making only minor changes like changing the `for` loop to satisfy Flow, and using `const`: ```javascript...
Commands doesn't work with `export { } from './some_file';`. See example below. ```js // test.js export function foo(): string { return 'foo'; } export function bar(): string { return 'bar';...
**If an identifier is declared as a type, we should never ever see "value-as-type" errors on that identifier.** But after upgrading from flow 0.125.1 to 0.133.0, I'm getting a bunch...
## Proposal ```js class Animal {} class Cat extends Animal {} class Cont {} (new Cont : Cont) ``` The above example currently displays the following error: ``` Cannot cast...
Flow version: 0.147.0 ## Expected behavior As [documented](https://flow.org/en/docs/config/declarations/): all errors in files from `[declarations]` should be ignored ## Actual behavior flowlint errors are still reported * Link to Try-Flow or...
```ts declare type F = (s: string, n?: number) => boolean; type Tuple = Parameters; declare function g(...args: Parameters): boolean; g("hi") ``` Cannot call `g` because rest array [1] has...
## Proposal The goal of this proposal is to improve interoperability between _Flow_ and _TypeScript_. - [ ] Allow `export declare` as an alias of `declare export` - [x] Add...
Closes #8284 `codePointAt` and `''[123]` has the potential to return `undefined`. This change will enforce users to put guards around these use cases to provide safer string manipulation.
Flow version: 0.226.0 On upgrading to 0.226, I get this error: ``` Cannot instantiate Connector because Arg3 [1] is underconstrained by BindActionCreatorObject [2]. Either add explicit type arguments or cast...