facebook / facebook/flow

Autocompletion/suggestions on imported or inherited types not happening

Open
#7,722 0 comments 0 reactions 0 assignees View on GitHub
autocomplete bug
Dominant language
Rust
Stars
22.3k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

Flow version: v0.98.1

## Expected behavior
Expecting that it should show suggestions based on the imported or inherited type

## Actual behavior
Not showing suggestions based on the type defined
![autocomplete2](https://user-images.githubusercontent.com/9933887/57727720-346ce300-7660-11e9-8a3a-f628eed3f7cf.gif)

* Link to Try-Flow or Github repo:
https://github.com/johhansantana/flow-type-checking-not-working

Check the 2 files called `TypeTest.js` and `TypeTest2.js`

It also doesn't work with something like this:
```javascript
import type {TitleProps} from "./Title";

export default () => {
const cardTitle: TitleProps = {
// <~ not suggesting
}
...
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.