Skip to content

Commit f404b8b

Browse files
Copilothotlong
andcommitted
fix: resolve TS2742 errors in drawer.tsx and sidebar.tsx for portable declaration files
Replace non-portable type references (typeof DrawerPrimitive.X via @radix-ui/react-dialog and typeof Separator via @radix-ui/react-separator) with concrete HTML element types in forwardRef generics. This ensures drawer.d.ts and sidebar.d.ts are properly generated, fixing all downstream import errors in plugin-view, apps/console, and apps/site. Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 15cd242 commit f404b8b

File tree

2 files changed

+18
-15
lines changed

2 files changed

+18
-15
lines changed

packages/components/src/ui/drawer.tsx

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/components/src/ui/sidebar.tsx

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)