Summary: fixing ts-strict errors

Reviewed By: passy

Differential Revision: D17181144

fbshipit-source-id: c48de5718f1a917c2eebd6b5913a43ce62b9b0a1
This commit is contained in:
Daniel Büchele
2019-09-05 04:40:39 -07:00
committed by Facebook Github Bot
parent e29563cfca
commit f34c8ba9fe
2 changed files with 4 additions and 4 deletions

View File

@@ -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;
}; };

View File

@@ -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,
}; };