Skip to content

Commit

Permalink
Flow v0.53 Codemod facebookarchive#5
Browse files Browse the repository at this point in the history
Summary:
bypass-lint
ignore-conflict-markers
ignore-signed-source
ignore-nocommit

Reviewed By: avikchaudhuri

fbshipit-source-id: d9b032d51619f9827e819d08198ce6a2aeae0fc5
  • Loading branch information
Caleb Meredith authored and facebook-github-bot committed Aug 17, 2017
1 parent 5e74b82 commit 1c99ad7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/component/contents/DraftEditorTextNode.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ type Props = {
* nodes with DOM state that already matches the expectations of our immutable
* editor state.
*/
class DraftEditorTextNode extends React.Component {
class DraftEditorTextNode extends React.Component<Props> {
_forceFlag: boolean;

constructor(props: Props) {
Expand All @@ -84,7 +84,7 @@ class DraftEditorTextNode extends React.Component {
this._forceFlag = !this._forceFlag;
}

render(): React.Element<any> {
render(): React.Node {
if (this.props.children === '') {
return this._forceFlag ? NEWLINE_A : NEWLINE_B;
}
Expand Down
2 changes: 1 addition & 1 deletion src/component/handlers/edit/editOnKeyDown.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function onKeyCommand(
* See `getDefaultKeyBinding` for defaults. Alternatively, the top-level
* component may provide a custom mapping via the `keyBindingFn` prop.
*/
function editOnKeyDown(editor: DraftEditor, e: SyntheticKeyboardEvent): void {
function editOnKeyDown(editor: DraftEditor, e: SyntheticKeyboardEvent<>): void {
var keyCode = e.which;
var editorState = editor._latestEditorState;

Expand Down

0 comments on commit 1c99ad7

Please sign in to comment.