blob: f9b61443e520fb5cb38ae6f7145a5d14e93f822f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
/// <reference types="vite/client" />
// for css modules
declare module '*.css' {
const classes: { [key: string]: string };
export default classes;
}
declare module '*.scss' {
const classes: { [key: string]: string };
export default classes;
}
declare module '*.module.css' {
const classes: { [key: string]: string };
export default classes;
}
declare module '*.module.scss' {
const classes: { [key: string]: string };
export default classes;
}
interface Window {
i18n: any;
}
// webpack definePlugin replacing variables
declare const __VERSION__: string;
declare module 'react-table' {
interface TableOptions {}
interface Empty {}
interface SortByToggleProps {}
interface Header {
getHeaderProps(p: SortByToggleProps): { role?: string };
getSortByToggleProps(): SortByToggleProps;
render(x: string): string;
id: string;
isSorted: boolean;
isSortedDesc: boolean;
}
interface HeaderGroup {
getHeaderGroupProps(): { role?: string };
headers: Header[];
}
interface Cell {
getCellProps(): { role?: string };
row: { original: { id: string } };
column: { id: string };
value: number;
}
interface Row {
cells: Cell[];
original: any;
}
export function useTable(
options: TableOptions,
useSortBy: useSortBy
): {
state: any;
headerGroups: HeaderGroup[];
getTableProps(): { role?: string };
setHiddenColumns: (columns: string[]) => void;
rows: Row[];
prepareRow(r: Row): void;
toggleSortBy: (columnId: string, descending?: boolean, isMulti?: boolean) => void;
};
export function useSortBy(): Empty;
}
|