Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Intellisense does not work for Exact Types #432

@frednomoon

Description

@frednomoon

Apologies for the React specific example but thats my use case - its pretty simple either way.

/* @flow */

import * as React from "react";
const TestExact = (props: {| foo: string |}) => <div>{props.foo}</div>;
const TestInexact = (props: { foo: string }) => <div>{props.foo}</div>;

const Example = () => (
  <div>
    <TestExact foo="bar" />
    <TestInexact foo="bar" />
  </div>
);

In this example I am able to get intellisense when writing the Inexact example:
image

However when writing the Exact Typed version I get no intellisense when writing the props.

This is extremely frustrating because I would like to use Exact Types for the various advantages it gives, however given the dev experience is severely lacking I dont think it will be worthwhile.

Any questions let me know. Interesting to hear thoughts on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions