Skip to content

Commit 51aa8e2

Browse files
ggascoignetannerlinsley
authored andcommitted
fix react-table-config.d.ts (TanStack#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.
1 parent 0d7a0d5 commit 51aa8e2

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

react-table-config.d.ts

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,43 @@
1+
import {
2+
UseColumnOrderInstanceProps,
3+
UseColumnOrderState,
4+
UseExpandedInstanceProps,
5+
UseExpandedOptions,
6+
UseExpandedRowProps,
7+
UseExpandedState,
8+
UseFiltersColumnOptions,
9+
UseFiltersColumnProps,
10+
UseFiltersInstanceProps,
11+
UseFiltersOptions,
12+
UseFiltersState,
13+
UseGroupByCellProps,
14+
UseGroupByColumnOptions,
15+
UseGroupByColumnProps,
16+
UseGroupByInstanceProps,
17+
UseGroupByOptions,
18+
UseGroupByRowProps,
19+
UseGroupByState,
20+
UsePaginationInstanceProps,
21+
UsePaginationOptions,
22+
UsePaginationState,
23+
UseResizeColumnsColumnOptions,
24+
UseResizeColumnsHeaderProps,
25+
UseResizeColumnsOptions,
26+
UseRowSelectInstanceProps,
27+
UseRowSelectOptions,
28+
UseRowSelectRowProps,
29+
UseRowSelectState,
30+
UseRowStateCellProps,
31+
UseRowStateInstanceProps,
32+
UseRowStateRowProps,
33+
UseSortByColumnOptions,
34+
UseSortByColumnProps,
35+
UseSortByInstanceProps,
36+
UseSortByOptions,
37+
UseSortByState,
38+
UseTableCellProps,
39+
} from 'react-table'
40+
141
declare module 'react-table' {
242
// take this file as-is, or comment out the sections that don't apply to your plugin configuration
343

0 commit comments

Comments
 (0)