Skip to content

Commit

Permalink
fix(react-grid): add GridExporter to ts definition (#2755)
Browse files Browse the repository at this point in the history
  • Loading branch information
ushkal committed Mar 20, 2020
1 parent d171f36 commit a2bafb5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/dx-react-grid-export/api/dx-react-grid-export.api.md
Expand Up @@ -10,6 +10,7 @@ import { FilteringStateProps } from '@devexpress/dx-react-grid/dist/dx-react-gri
import { GridProps } from '@devexpress/dx-react-grid/dist/dx-react-grid';
import { GroupingStateProps } from '@devexpress/dx-react-grid/dist/dx-react-grid';
import { GroupSummaryItem } from '@devexpress/dx-react-grid/dist/dx-react-grid';
import * as React from 'react';
import { Row } from 'exceljs';
import { SelectionStateProps } from '@devexpress/dx-react-grid/dist/dx-react-grid';
import { SortingStateProps } from '@devexpress/dx-react-grid/dist/dx-react-grid';
Expand Down Expand Up @@ -56,6 +57,9 @@ export type ExportSummary = {
// @public (undocumented)
export type GetCellValueFn = (row: any, columnName: string) => any;

// @public (undocumented)
export const GridExporter: React.ComponentType<ExporterProps>;

// @public (undocumented)
export type SummaryType = string;

Expand Down
3 changes: 2 additions & 1 deletion packages/dx-react-grid-export/src/index.ts
@@ -1 +1,2 @@
export * from './plugins/grid-exporter';
export * from './types';
export { GridExporter } from './plugins/grid-exporter';
@@ -1,3 +1,4 @@
import * as React from 'react';
import { Workbook, Cell as ExcelCell, Worksheet, Row as ExcelRow } from 'exceljs';
/* tslint:disable no-submodule-imports */
import {
Expand Down Expand Up @@ -47,3 +48,5 @@ export type ExporterState = {
isExporting: boolean;
selectedOnly: boolean;
};

export declare const GridExporter: React.ComponentType<ExporterProps>;

0 comments on commit a2bafb5

Please sign in to comment.