-
Notifications
You must be signed in to change notification settings - Fork 70
/
Copy pathreact-selectable.d.ts
32 lines (26 loc) · 967 Bytes
/
react-selectable.d.ts
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
declare module 'react-selectable' {
interface ReactSelectableGroupProps {
onSelection?: (selectedItems: Array<any>) => void;
onNonItemClick?: () => void;
onBeginSelection?: () => void;
onEndSelection?: () => void;
selectingClassName?: string;
tolerance?: number;
component?: string;
fixedPosition?: boolean;
preventDefault?: boolean;
enabled?: boolean;
[key: string]: any;
}
interface ReactSelectableComponentProps {
key?: number|string;
selected?: boolean;
selectableKey?: number|string;
[key: string]: any;
}
export class SelectableGroup extends React.Component<ReactSelectableGroupProps> {
}
class SelectableComponent extends React.Component<ReactSelectableComponentProps> {
}
export const createSelectable: (component: React.ReactNode) => typeof SelectableComponent;
}