This repository has been archived by the owner on Feb 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reviewed By: catchingash Differential Revision: D19522615 fbshipit-source-id: 6829a906faa2cc5fd8feb4e5e7b85c1450287260
- Loading branch information
1 parent
a9fcbb2
commit 24339f1
Showing
2 changed files
with
19 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @format | ||
* @flow strict-local | ||
* @emails oncall+draft_js | ||
*/ | ||
|
||
const ReactDOM = require('ReactDOM'); | ||
|
||
const flushControlled: void | ((fn: () => void) => void) = | ||
// $FlowExpectedError unstable_flushControlled is not yet in the upstream Flow typing | ||
ReactDOM.unstable_flushControlled; | ||
|
||
module.exports = flushControlled; |