Skip to content

Commit

Permalink
Update variant type tests to match desired behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandrHoroshih committed Feb 9, 2024
1 parent d43d503 commit 7d92322
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion type-tests/types-variant.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ import { expectType } from 'tsd';
<ComponentWithVariantAndReflect slot={<h2>Another slot type(</h2>} />
<ComponentWithVariantAndReflect
slot={<h2>Should report error for "name"</h2>}
// @ts-expect-error
name="kek"

Check failure on line 246 in type-tests/types-variant.tsx

View workflow job for this annotation

GitHub Actions / test-package

Type '{ slot: Element; name: string; }' is not assignable to type 'IntrinsicAttributes & Omit<Omit<{ name: string; slot: ReactNode; }, "name">, never>'.
/>
</main>
Expand Down

0 comments on commit 7d92322

Please sign in to comment.