Skip to content

Commit 69db7da

Browse files
chore: exporting missing types from index (#464)
## **Description** This PR adds missing type exports to the design-system-react package's main index.ts file. During an audit of component exports, we identified that some types and enums were defined but not properly exported, which could prevent consumers from accessing these types. ## **Related issues** Fixes: N/A ## **Manual testing steps** 1. Import the newly exported types in a consuming project: ```typescript import { AvatarBaseShape, ButtonIconSize } from '@metamask/design-system-react'; ``` 2. Verify the types are properly resolved and available 3. Verify existing type exports continue to work as expected ## **Screenshots/Recordings** N/A - Type system changes only ## **Pre-merge author checklist** - [x] I've followed MetaMask Contributor Docs - [x] I've completed the PR template to the best of my ability - [x] I've included tests if applicable - [x] I've documented my code using JSDoc format if applicable - [x] I've applied the right labels on the PR ## **Pre-merge reviewer checklist** - [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.
1 parent 7162a4b commit 69db7da

File tree

1 file changed

+2
-2
lines changed
  • packages/design-system-react/src/components

1 file changed

+2
-2
lines changed

packages/design-system-react/src/components/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ export type { ButtonProps } from './button';
3333
export { TextButton } from './text-button';
3434
export type { TextButtonProps } from './text-button';
3535

36-
export { ButtonIcon } from './button-icon';
36+
export { ButtonIcon, ButtonIconSize } from './button-icon';
3737
export type { ButtonIconProps } from './button-icon';
3838

39-
export { AvatarBase, AvatarBaseSize } from './avatar-base';
39+
export { AvatarBase, AvatarBaseSize, AvatarBaseShape } from './avatar-base';
4040
export type { AvatarBaseProps } from './avatar-base';
4141

4242
export { AvatarNetwork, AvatarNetworkSize } from './avatar-network';

0 commit comments

Comments
 (0)