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

Commit db286a4

Browse files
atwalg2jasonLaster
authored andcommitted
[Flow] src/utils/DevtoolsUtils.js - add type defs for flow coverage (#5872)
1 parent b334ee3 commit db286a4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/utils/DevToolsUtils.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22
* License, v. 2.0. If a copy of the MPL was not distributed with this
33
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
44

5+
// @flow
6+
57
import assert from "./assert";
68

7-
export function reportException(who, exception) {
9+
export function reportException(who: string, exception: any[]) {
810
const msg = `${who} threw an exception: `;
911
console.error(msg, exception);
1012
}
1113

12-
export function executeSoon(fn) {
14+
export function executeSoon(fn: Function) {
1315
setTimeout(fn, 0);
1416
}
1517

0 commit comments

Comments
 (0)