Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Commit 2e3a181

Browse files
pakoitofacebook-github-bot
authored andcommitted
Add type annotations to React.Component classes in html/shared
Reviewed By: rubennorte Differential Revision: D10426632 fbshipit-source-id: b6ba889749311f8f013c362c78f77dcd2515b028
1 parent 280d242 commit 2e3a181

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/component/base/DraftEditor.react.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ class UpdateDraftEditorFlags extends React.Component<{
6969
editor: DraftEditor,
7070
editorState: EditorState,
7171
}> {
72-
render() {
72+
render(): React.Node {
7373
return null;
7474
}
75-
componentDidMount() {
75+
componentDidMount(): mixed {
7676
this._update();
7777
}
78-
componentDidUpdate() {
78+
componentDidUpdate(): mixed {
7979
this._update();
8080
}
8181
_update() {

0 commit comments

Comments
 (0)