Skip to content

Commit

Permalink
fix(DataTable): export datatable utility types (#5182)
Browse files Browse the repository at this point in the history
* fix(DataTable): export datatable utility types

* Create old-plums-explode.md

* test: update snapshot
  • Loading branch information
francinelucca authored Oct 29, 2024
1 parent a2536bf commit 31d9a05
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/old-plums-explode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

fix(DataTable): export datatable utility types
4 changes: 3 additions & 1 deletion packages/react/src/DataTable/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,6 @@ export type {
TableSkeletonProps,
} from './Table'
export {createColumnHelper} from './column'
export type {Column} from './column'
export type {Column, CellAlignment, ColumnWidth} from './column'
export type {UniqueRow} from './row'
export type {ObjectPaths} from './utils'
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,10 @@ exports[`@primer/react/experimental should not update exports without a semver c
"type BlankslateProps",
"ButtonBase",
"type ButtonBaseProps",
"type CellAlignment",
"type ChildrenPropTypes",
"type Column",
"type ColumnWidth",
"createColumnHelper",
"DataTable",
"type DataTableProps",
Expand Down Expand Up @@ -299,6 +301,7 @@ exports[`@primer/react/experimental should not update exports without a semver c
"type NavListProps",
"type NavListSubNavProps",
"type NavListTrailingVisualProps",
"type ObjectPaths",
"PageHeader",
"type PageHeaderProps",
"type ParentLinkProps",
Expand Down Expand Up @@ -333,6 +336,7 @@ exports[`@primer/react/experimental should not update exports without a semver c
"type UnderlinePanelsPanelProps",
"type UnderlinePanelsProps",
"type UnderlinePanelsTabProps",
"type UniqueRow",
"useFeatureFlag",
"useOverflow",
"useSlots",
Expand Down
4 changes: 4 additions & 0 deletions packages/react/src/experimental/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ export type {
TableSubtitleProps,
TableActionsProps,
Column,
CellAlignment,
ColumnWidth,
UniqueRow,
ObjectPaths,
} from '../DataTable'

export * from '../Dialog/Dialog'
Expand Down

0 comments on commit 31d9a05

Please sign in to comment.