Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit f0b1ef9

Browse files
authored
added typing for RefHandler (#386)
* added typing for RefHandler fixes issues 373 * export added
1 parent 3a2f12a commit f0b1ef9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

typings/react-popper.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ interface ManagerProps {
99
}
1010
export class Manager extends React.Component<ManagerProps, {}> {}
1111

12+
export type RefHandler = (ref: HTMLElement | null) => void;
13+
1214
interface ReferenceChildrenProps {
1315
// React refs are supposed to be contravariant (allows a more general type to be passed rather than a more specific one)
1416
// However, Typescript currently can't infer that fact for refs

0 commit comments

Comments
 (0)