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

Commit

Permalink
Upgrade to Flow explicit inexact object type syntax
Browse files Browse the repository at this point in the history
Reviewed By: jbrown215

Differential Revision: D19395428

fbshipit-source-id: 9929777ab964e4e38682acee7b17c76a19067fde
  • Loading branch information
generatedunixname89002005287564 authored and facebook-github-bot committed Jan 14, 2020
1 parent ad8374d commit bafe30a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ type Props = {
selection: SelectionState,
startIndent?: boolean,
tree: List<any>,
...
};

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ type Props = {
editorKey?: string,
editorState: EditorState,
textDirectionality?: BidiDirection,
...
};

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ type Props = {
direction: BidiDirection,
text: string,
leafSet: Set<any>,
...
};

class DraftEditorDecoratedLeaves extends React.Component<Props> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ type Props = {
hasSelection: boolean,
selection: SelectionState,
tree: List<any>,
...
};

class DraftEditorNode extends React.Component<Props> {
Expand Down
6 changes: 5 additions & 1 deletion src/component/handlers/composition/DOMObserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ class DOMObserver {
observer: ?MutationObserver;
container: HTMLElement;
mutations: Map<string, string>;
onCharData: ?({target: EventTarget, type: string}) => void;
onCharData: ?({
target: EventTarget,
type: string,
...
}) => void;

constructor(container: HTMLElement) {
this.container = container;
Expand Down

0 comments on commit bafe30a

Please sign in to comment.