Skip to content

Commit b44d01c

Browse files
committed
Missing exports
1 parent 0e15178 commit b44d01c

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

packages/core/src/data-editor/row-grouping-api.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ import React from "react";
22
import type { Item } from "../internal/data-grid/data-grid-types.js";
33
import { flattenRowGroups, mapRowIndexToPath, type RowGroup, type RowGroupingOptions } from "./row-grouping.js";
44

5-
type RowGroupingMapperResult<T> = {
5+
export type RowGroupingMapperResult<T> = {
66
path: readonly number[];
77
originalIndex: T;
88
isGroupHeader: boolean;
99
groupRows: number;
1010
};
1111

12-
type RowGroupingMapper = {
12+
export type RowGroupingMapper = {
1313
(itemOrRow: number): RowGroupingMapperResult<number>;
1414
(itemOrRow: Item): RowGroupingMapperResult<Item>;
1515
};
1616

17-
interface UseRowGroupingResult {
17+
export interface UseRowGroupingResult {
1818
readonly mapper: RowGroupingMapper;
1919
readonly updateRowGroupingByPath: (
2020
rowGrouping: readonly RowGroup[],

packages/core/src/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,14 @@ export { AllCellRenderers } from "./cells/index.js";
6565
export { sprites } from "./internal/data-grid/sprites.js";
6666
export { default as ImageWindowLoaderImpl } from "./common/image-window-loader.js";
6767
export * from "./data-editor/copy-paste.js";
68+
6869
export { useRowGrouping } from "./data-editor/row-grouping-api.js";
70+
export type {
71+
RowGroupingMapper,
72+
RowGroupingMapperResult,
73+
UseRowGroupingResult,
74+
} from "./data-editor/row-grouping-api.js";
75+
export type { RowGroup, RowGroupingOptions } from "./data-editor/row-grouping.js";
6976

7077
/**
7178
* @category DataEditor

0 commit comments

Comments
 (0)