Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .changeset/proper-dialog-component-types.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
"@ladle/react": patch
---

fix: add proper types for dialog components

Adds explicit prop types for `DialogOverlay` and `DialogContent` and removes
the `@ts-ignore` directives in the `Modal` component (the
[#626](https://github.com/tajo/ladle/pull/626) change). This unblocks
downstream consumers running stricter typecheckers — notably
[`@typescript/native-preview` (tsgo)](https://www.npmjs.com/package/@typescript/native-preview),
which surfaces the underlying `Property 'isOpen' does not exist on type
'IntrinsicAttributes & RefAttributes<unknown>'` error from
`typings-for-build/app/src/ui.tsx` even with `skipLibCheck: true`.
Loading