Skip to content

Commit

Permalink
Update test to match desired behavior (keys from bind are optional in…
Browse files Browse the repository at this point in the history
… final props)
  • Loading branch information
AlexandrHoroshih committed Feb 9, 2024
1 parent 6389515 commit d43d503
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions type-tests/types-reflect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ import { expectType } from 'tsd';
expectType<React.FC>(AppFixed);
}

// reflect should exclude "binded" props from the final component props
// reflect should make "binded" props optional - so it is allowed to overwrite them in react anyway
{
const Input: React.FC<{
value: string;
Expand All @@ -123,7 +123,6 @@ import { expectType } from 'tsd';
});

const App: React.FC = () => {
// @ts-expect-error
return <ReflectedInput value="kek" color="red" />;
};

Expand Down

0 comments on commit d43d503

Please sign in to comment.