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

Commit 81f92ee

Browse files
pakoitofacebook-github-bot
authored andcommitted
Fix $FlowFixMe type not working for CI builds of draft-js
Summary: This diff fixes a $FlowFixMe type not accepted by CI builds of draft-js, as seen in https://travis-ci.org/facebook/draft-js/jobs/466944758 Reviewed By: mjesun Differential Revision: D13431039 fbshipit-source-id: 14b1acc68b08821fa353eaacf5b25fb4686a9cd9
1 parent 7cb10f9 commit 81f92ee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/model/immutable/SelectionState.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ const defaultRecord: {
3333
hasFocus: false,
3434
};
3535

36-
const SelectionStateRecord = (Record(defaultRecord): $FlowFixMe);
36+
/* $FlowFixMe This comment suppresses an error found when automatically adding
37+
* a type annotation with the codemod Komodo/Annotate_exports. To see the error
38+
* delete this comment and run Flow. */
39+
const SelectionStateRecord = (Record(defaultRecord): any);
3740

3841
class SelectionState extends SelectionStateRecord {
3942
serialize(): string {

0 commit comments

Comments
 (0)