Skip to content

fix(Icon): re-export types#2595

Draft
ogonkov wants to merge 6 commits intomainfrom
fix/reexport_icon_types
Draft

fix(Icon): re-export types#2595
ogonkov wants to merge 6 commits intomainfrom
fix/reexport_icon_types

Conversation

@ogonkov
Copy link
Contributor

@ogonkov ogonkov commented Feb 25, 2026

When typing *.svg in project with IconData from @gravity-ui/uikit and have declaration: true in tsconfig (enabled by default when using TS Project References for example) user got errors like

The inferred type of X cannot be named without a reference to '../../../../../../../node_modules/@gravity-ui/uikit/build/esm/components/Icon/types'. This is likely not portable. A type annotation is necessary.

@gravity-ui
Copy link
Contributor

gravity-ui bot commented Feb 25, 2026

Preview is ready.

@gravity-ui
Copy link
Contributor

gravity-ui bot commented Feb 25, 2026

🎭 Component Tests Report is ready.

@ogonkov ogonkov marked this pull request as ready for review February 25, 2026 17:03
@ogonkov ogonkov requested a review from amje as a code owner February 25, 2026 17:03
@amje
Copy link
Contributor

amje commented Feb 25, 2026

@ogonkov There shouldn't be any problems. What code is throwing such error?

@ogonkov ogonkov marked this pull request as draft February 25, 2026 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants