flow icon indicating copy to clipboard operation
flow copied to clipboard

Adds static typing to JavaScript to improve developer productivity and code quality.

Results 158 flow issues
Sort by recently updated
recently updated
newest added

We have a lot of reports on unsoundness issues. This issue categorizes them into the underlying cause. - [ ] Unsound literal types - #8972 - #8607 - #8593 -...

Typing: soundness

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...

Library definitions
Accepting PRs

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';...

bug
autocomplete

**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...

bug
needs triage

## Proposal ```js class Animal {} class Cat extends Animal {} class Cont {} (new Cont : Cont) ``` The above example currently displays the following error: ``` Cannot cast...

error messages
discussion

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...

bug
linter

```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...

bug
Typing: completeness

## 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...

discussion

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.

CLA Signed
Library definitions

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...

bug