Skip to content
Permalink
Browse files

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.
  • Loading branch information...
ggascoigne authored and tannerlinsley committed Oct 9, 2019
1 parent 0d7a0d5 commit 51aa8e2eff695cf68eb6f3d9434bc27bf16acc7d
Showing with 40 additions and 0 deletions.
  1. +40 −0 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

0 comments on commit 51aa8e2

Please sign in to comment.
You can’t perform that action at this time.