Skip to content

Conversation

@a-tarasyuk
Copy link
Contributor

@a-tarasyuk a-tarasyuk commented Jul 25, 2021

Fixes #45163

This PR adds QF handling for Type '{}' is missing the following properties from type {} error for JSX elements. #45163 (comment)

interface P {
    a: number;
    b: string;
}

const A = ({ a, b }: P) =>
    <div>{a}{b}</div>;

// before
const Bar = () =>
    <A></A>
     ^ Type '{}' is missing the following properties from type 'P': a, b

// after
const Bar = () =>
    <A a={0} b={""}></A>

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Jul 25, 2021
@DanielRosenwasser DanielRosenwasser merged commit cce2e92 into microsoft:main Aug 6, 2021
BobobUnicorn pushed a commit to BobobUnicorn/TypeScript that referenced this pull request Oct 24, 2021
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Quickfix to add missing attributes/properties

4 participants