From 51aa8e2eff695cf68eb6f3d9434bc27bf16acc7d Mon Sep 17 00:00:00 2001 From: ggascoigne Date: Wed, 9 Oct 2019 16:47:34 -0700 Subject: [PATCH] fix react-table-config.d.ts (#1582) It turns out that pulling the types directly from a package slightly changes how visible they are to the consuming application. This makes sense, previously we explicitly adding the react-table module to the global namespace an so didn't need explicit imports, but now that's not the case. So add explicit imports. --- react-table-config.d.ts | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/react-table-config.d.ts b/react-table-config.d.ts index 315d3fe..2e12b86 100644 --- a/react-table-config.d.ts +++ b/react-table-config.d.ts @@ -1,3 +1,43 @@ +import { + UseColumnOrderInstanceProps, + UseColumnOrderState, + UseExpandedInstanceProps, + UseExpandedOptions, + UseExpandedRowProps, + UseExpandedState, + UseFiltersColumnOptions, + UseFiltersColumnProps, + UseFiltersInstanceProps, + UseFiltersOptions, + UseFiltersState, + UseGroupByCellProps, + UseGroupByColumnOptions, + UseGroupByColumnProps, + UseGroupByInstanceProps, + UseGroupByOptions, + UseGroupByRowProps, + UseGroupByState, + UsePaginationInstanceProps, + UsePaginationOptions, + UsePaginationState, + UseResizeColumnsColumnOptions, + UseResizeColumnsHeaderProps, + UseResizeColumnsOptions, + UseRowSelectInstanceProps, + UseRowSelectOptions, + UseRowSelectRowProps, + UseRowSelectState, + UseRowStateCellProps, + UseRowStateInstanceProps, + UseRowStateRowProps, + UseSortByColumnOptions, + UseSortByColumnProps, + UseSortByInstanceProps, + UseSortByOptions, + UseSortByState, + UseTableCellProps, +} from 'react-table' + declare module 'react-table' { // take this file as-is, or comment out the sections that don't apply to your plugin configuration