Skip to content

Commit

Permalink
refactor(types): update type exports to prevent missing exports warni…
Browse files Browse the repository at this point in the history
…ngs (#3662)

* refactor(types): update type exports to prevent missing exports warnings

* chore: add changeset

---------

Co-authored-by: Josh Black <joshblack@users.noreply.github.com>
  • Loading branch information
joshblack and joshblack authored Aug 25, 2023
1 parent 36fba85 commit 2ca670a
Show file tree
Hide file tree
Showing 40 changed files with 85 additions and 47 deletions.
7 changes: 7 additions & 0 deletions .changeset/grumpy-maps-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@primer/react': patch
---

Update type exports to prevent missing export warnings

<!-- Changed components: _none_ -->
3 changes: 2 additions & 1 deletion src/Avatar/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, AvatarProps} from './Avatar'
export {default} from './Avatar'
export type {AvatarProps} from './Avatar'
3 changes: 2 additions & 1 deletion src/AvatarPair/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, AvatarPairProps} from './AvatarPair'
export {default} from './AvatarPair'
export type {AvatarPairProps} from './AvatarPair'
3 changes: 2 additions & 1 deletion src/AvatarStack/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, AvatarStackProps} from './AvatarStack'
export {default} from './AvatarStack'
export type {AvatarStackProps} from './AvatarStack'
3 changes: 2 additions & 1 deletion src/Blankslate/index.tsx
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default as Blankslate, BlankslateProps} from './Blankslate'
export {default as Blankslate} from './Blankslate'
export type {BlankslateProps} from './Blankslate'
3 changes: 2 additions & 1 deletion src/Box/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, BoxProps} from './Box'
export {default} from './Box'
export type {BoxProps} from './Box'
3 changes: 2 additions & 1 deletion src/BranchName/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, BranchNameProps} from './BranchName'
export {default} from './BranchName'
export type {BranchNameProps} from './BranchName'
10 changes: 2 additions & 8 deletions src/Breadcrumbs/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
export {
default,
Breadcrumb,
BreadcrumbsProps,
BreadcrumbProps,
BreadcrumbsItemProps,
BreadcrumbItemProps,
} from './Breadcrumbs'
export {default, Breadcrumb} from './Breadcrumbs'
export type {BreadcrumbsProps, BreadcrumbProps, BreadcrumbsItemProps, BreadcrumbItemProps} from './Breadcrumbs'
3 changes: 2 additions & 1 deletion src/ButtonGroup/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, ButtonGroupProps} from './ButtonGroup'
export {default} from './ButtonGroup'
export type {ButtonGroupProps} from './ButtonGroup'
3 changes: 2 additions & 1 deletion src/Checkbox/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, CheckboxProps} from './Checkbox'
export {default} from './Checkbox'
export type {CheckboxProps} from './Checkbox'
3 changes: 2 additions & 1 deletion src/CircleBadge/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, CircleBadgeProps, CircleBadgeIconProps} from './CircleBadge'
export {default} from './CircleBadge'
export type {CircleBadgeProps, CircleBadgeIconProps} from './CircleBadge'
3 changes: 2 additions & 1 deletion src/CircleOcticon/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, CircleOcticonProps} from './CircleOcticon'
export {default} from './CircleOcticon'
export type {CircleOcticonProps} from './CircleOcticon'
3 changes: 2 additions & 1 deletion src/CounterLabel/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, CounterLabelProps} from './CounterLabel'
export {default} from './CounterLabel'
export type {CounterLabelProps} from './CounterLabel'
3 changes: 2 additions & 1 deletion src/Details/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, DetailsProps} from './Details'
export {default} from './Details'
export type {DetailsProps} from './Details'
3 changes: 2 additions & 1 deletion src/FilterList/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, FilterListProps, FilterListItemProps} from './FilterList'
export {default} from './FilterList'
export type {FilterListProps, FilterListItemProps} from './FilterList'
3 changes: 2 additions & 1 deletion src/FilteredSearch/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, FilteredSearchProps} from './FilteredSearch'
export {default} from './FilteredSearch'
export type {FilteredSearchProps} from './FilteredSearch'
3 changes: 2 additions & 1 deletion src/Flash/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, FlashProps} from './Flash'
export {default} from './Flash'
export type {FlashProps} from './Flash'
3 changes: 2 additions & 1 deletion src/Header/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, HeaderProps, HeaderItemProps, HeaderLinkProps} from './Header'
export {default} from './Header'
export type {HeaderProps, HeaderItemProps, HeaderLinkProps} from './Header'
3 changes: 2 additions & 1 deletion src/Heading/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, HeadingProps} from './Heading'
export {default} from './Heading'
export type {HeadingProps} from './Heading'
3 changes: 2 additions & 1 deletion src/LabelGroup/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, LabelGroupProps} from './LabelGroup'
export {default} from './LabelGroup'
export type {LabelGroupProps} from './LabelGroup'
3 changes: 2 additions & 1 deletion src/Link/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, LinkProps} from './Link'
export {default} from './Link'
export type {LinkProps} from './Link'
3 changes: 2 additions & 1 deletion src/Octicon/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, OcticonProps} from './Octicon'
export {default} from './Octicon'
export type {OcticonProps} from './Octicon'
3 changes: 2 additions & 1 deletion src/Overlay/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, OverlayProps} from './Overlay'
export {default} from './Overlay'
export type {OverlayProps} from './Overlay'
3 changes: 2 additions & 1 deletion src/Pagehead/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, PageheadProps} from './Pagehead'
export {default} from './Pagehead'
export type {PageheadProps} from './Pagehead'
3 changes: 2 additions & 1 deletion src/PointerBox/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, PointerBoxProps} from './PointerBox'
export {default} from './PointerBox'
export type {PointerBoxProps} from './PointerBox'
3 changes: 2 additions & 1 deletion src/Popover/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, PopoverProps, PopoverContentProps} from './Popover'
export {default} from './Popover'
export type {PopoverProps, PopoverContentProps} from './Popover'
3 changes: 2 additions & 1 deletion src/Radio/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, RadioProps} from './Radio'
export {default} from './Radio'
export type {RadioProps} from './Radio'
3 changes: 2 additions & 1 deletion src/Spinner/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, SpinnerProps} from './Spinner'
export {default} from './Spinner'
export type {SpinnerProps} from './Spinner'
3 changes: 2 additions & 1 deletion src/StateLabel/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, StateLabelProps} from './StateLabel'
export {default} from './StateLabel'
export type {StateLabelProps} from './StateLabel'
3 changes: 2 additions & 1 deletion src/StyledOcticon/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, StyledOcticonProps} from './StyledOcticon'
export {default} from './StyledOcticon'
export type {StyledOcticonProps} from './StyledOcticon'
3 changes: 2 additions & 1 deletion src/SubNav/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, SubNavProps, SubNavLinkProps, SubNavLinksProps} from './SubNav'
export {default} from './SubNav'
export type {SubNavProps, SubNavLinkProps, SubNavLinksProps} from './SubNav'
3 changes: 2 additions & 1 deletion src/TabNav/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, TabNavProps, TabNavLinkProps} from './TabNav'
export {default} from './TabNav'
export type {TabNavProps, TabNavLinkProps} from './TabNav'
3 changes: 2 additions & 1 deletion src/Text/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, TextProps} from './Text'
export {default} from './Text'
export type {TextProps} from './Text'
3 changes: 2 additions & 1 deletion src/TextInput/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, TextInputProps, TextInputNonPassthroughProps} from './TextInput'
export {default} from './TextInput'
export type {TextInputProps, TextInputNonPassthroughProps} from './TextInput'
3 changes: 2 additions & 1 deletion src/TextInputWithTokens/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, TextInputWithTokensProps} from './TextInputWithTokens'
export {default} from './TextInputWithTokens'
export type {TextInputWithTokensProps} from './TextInputWithTokens'
3 changes: 2 additions & 1 deletion src/Textarea/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, TextareaProps, DEFAULT_TEXTAREA_COLS, DEFAULT_TEXTAREA_RESIZE, DEFAULT_TEXTAREA_ROWS} from './Textarea'
export {default, DEFAULT_TEXTAREA_COLS, DEFAULT_TEXTAREA_RESIZE, DEFAULT_TEXTAREA_ROWS} from './Textarea'
export type {TextareaProps} from './Textarea'
4 changes: 2 additions & 2 deletions src/Timeline/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export {
default,
export {default} from './Timeline'
export type {
TimelineProps,
TimelineItemsProps,
TimelineBadgeProps,
Expand Down
3 changes: 2 additions & 1 deletion src/ToggleSwitch/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, ToggleSwitchProps} from './ToggleSwitch'
export {default} from './ToggleSwitch'
export type {ToggleSwitchProps} from './ToggleSwitch'
3 changes: 2 additions & 1 deletion src/Truncate/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, TruncateProps} from './Truncate'
export {default} from './Truncate'
export type {TruncateProps} from './Truncate'
3 changes: 2 additions & 1 deletion src/UnderlineNav/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {default, UnderlineNavProps, UnderlineNavLinkProps} from './UnderlineNav'
export {default} from './UnderlineNav'
export type {UnderlineNavProps, UnderlineNavLinkProps} from './UnderlineNav'

0 comments on commit 2ca670a

Please sign in to comment.