Skip to content

Commit 792116f

Browse files
committed
Revert export of dataviews types
1 parent d94c40b commit 792116f

File tree

1 file changed

+2
-2
lines changed
  • packages/dataviews/src/components/dataviews

1 file changed

+2
-2
lines changed

packages/dataviews/src/components/dataviews/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import type { Action, Field, View, SupportedLayouts } from '../../types';
3333
import type { SelectionOrUpdater } from '../../private-types';
3434
type ItemWithId = { id: string };
3535

36-
export type DataViewsProps< Item > = {
36+
type DataViewsProps< Item > = {
3737
view: View;
3838
onChangeView: ( view: View ) => void;
3939
fields: Field< Item >[];
@@ -64,7 +64,7 @@ export type DataViewsProps< Item > = {
6464
? { getItemId?: ( item: Item ) => string }
6565
: { getItemId: ( item: Item ) => string } );
6666

67-
export const defaultGetItemId = ( item: ItemWithId ) => item.id;
67+
const defaultGetItemId = ( item: ItemWithId ) => item.id;
6868
const defaultIsItemClickable = () => true;
6969
const EMPTY_ARRAY: any[] = [];
7070

0 commit comments

Comments
 (0)