Tooltip
Summary: fixing ts-strict errors Reviewed By: passy Differential Revision: D17181144 fbshipit-source-id: c48de5718f1a917c2eebd6b5913a43ce62b9b0a1
This commit is contained in:
committed by
Facebook Github Bot
parent
e29563cfca
commit
f34c8ba9fe
@@ -31,11 +31,11 @@ export default class Tooltip extends Component<TooltipProps, TooltipState> {
|
|||||||
TOOLTIP_PROVIDER: PropTypes.object,
|
TOOLTIP_PROVIDER: PropTypes.object,
|
||||||
};
|
};
|
||||||
|
|
||||||
context: {
|
context!: {
|
||||||
TOOLTIP_PROVIDER: TooltipProvider;
|
TOOLTIP_PROVIDER: TooltipProvider;
|
||||||
};
|
};
|
||||||
|
|
||||||
ref: HTMLDivElement | null;
|
ref: HTMLDivElement | undefined;
|
||||||
|
|
||||||
state = {
|
state = {
|
||||||
open: false,
|
open: false,
|
||||||
@@ -63,7 +63,7 @@ export default class Tooltip extends Component<TooltipProps, TooltipState> {
|
|||||||
this.setState({open: false});
|
this.setState({open: false});
|
||||||
};
|
};
|
||||||
|
|
||||||
setRef = (ref: HTMLDivElement | null) => {
|
setRef = (ref: HTMLDivElement | undefined) => {
|
||||||
this.ref = ref;
|
this.ref = ref;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ export default class TooltipProvider extends Component<
|
|||||||
TOOLTIP_PROVIDER: PropTypes.object,
|
TOOLTIP_PROVIDER: PropTypes.object,
|
||||||
};
|
};
|
||||||
|
|
||||||
state = {
|
state: TooltipState = {
|
||||||
tooltip: null,
|
tooltip: null,
|
||||||
timeoutID: undefined,
|
timeoutID: undefined,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user