@@ -6,28 +6,36 @@ interface ManagerProps {
66}
77export class Manager extends React . Component < ManagerProps , { } > { }
88
9+ type RefHandler = ( ref : HTMLElement | null ) => void ;
10+
11+ interface ReferenceChildrenProps {
12+ ref : RefHandler ;
13+ }
14+
915interface ReferenceProps {
10- children : ( props : ( {
11- ref : ( ref : HTMLElement | null ) => void ,
12- } ) ) => React . ReactNode ;
16+ children : ( props : ReferenceChildrenProps ) => React . ReactNode ;
1317}
1418export class Reference extends React . Component < ReferenceProps , { } > { }
1519
20+ interface PopperArrowProps {
21+ ref : RefHandler ;
22+ style : React . CSSProperties ;
23+ }
24+
25+ interface PopperChildrenProps {
26+ arrowProps : PopperArrowProps ;
27+ outOfBoundaries : boolean | null ;
28+ placement : PopperJS . Placement ;
29+ ref : RefHandler ;
30+ scheduleUpdate : ( ) => void ;
31+ style : React . CSSProperties ;
32+ }
33+
1634interface PopperProps {
35+ children : ( props : PopperChildrenProps ) => React . ReactNode ;
36+ eventsEnabled ?: boolean ;
1737 modifiers ?: PopperJS . Modifiers ;
1838 placement ?: PopperJS . Placement ;
19- eventsEnabled ?: boolean ;
2039 positionFixed ?: boolean ;
21- children : ( props : ( {
22- ref : ( ref : HTMLElement | null ) => void ,
23- style : React . CSSProperties ,
24- placement ?: PopperJS . Placement ,
25- outOfBoundaries : boolean | null ,
26- scheduleUpdate : ( ) => void ,
27- arrowProps : {
28- ref : ( ref : HTMLElement | null ) => void ,
29- style : React . CSSProperties ,
30- } ,
31- } ) ) => React . ReactNode ;
3240}
3341export class Popper extends React . Component < PopperProps , { } > { }
0 commit comments