Skip to content

Commit 9bba278

Browse files
committed
Update Flow to 0.248
1 parent 5f06c3d commit 9bba278

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@
7272
"eslint-plugin-react-internal": "link:./scripts/eslint-rules",
7373
"fbjs-scripts": "^3.0.1",
7474
"filesize": "^6.0.1",
75-
"flow-bin": "^0.247",
76-
"flow-remove-types": "^2.247",
75+
"flow-bin": "^0.248",
76+
"flow-remove-types": "^2.248",
7777
"glob": "^7.1.6",
7878
"glob-stream": "^6.1.0",
7979
"google-closure-compiler": "^20230206.0.0",

packages/react-devtools-timeline/src/utils/flow.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
*
77
* @flow
88
*/
9-
import type {SchedulingEvent} from '../types';
9+
import type {ReactScheduleStateUpdateEvent, SchedulingEvent} from '../types';
1010

11-
export function isStateUpdateEvent(event: SchedulingEvent): boolean %checks {
11+
export function isStateUpdateEvent(
12+
event: SchedulingEvent,
13+
): event is ReactScheduleStateUpdateEvent {
1214
return event.type === 'schedule-state-update';
1315
}

packages/shared/isArray.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
* @flow
88
*/
99

10-
declare function isArray(a: mixed): boolean %checks(Array.isArray(a));
10+
declare function isArray<T>(
11+
v: T,
12+
): v is T extends $ReadOnlyArray<mixed> ? T : empty;
1113

1214
const isArrayImpl = Array.isArray;
1315

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9101,12 +9101,12 @@ flatted@^3.2.9:
91019101
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.3.1.tgz#21db470729a6734d4997002f439cb308987f567a"
91029102
integrity sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==
91039103

9104-
flow-bin@^0.247:
9105-
version "0.247.1"
9106-
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.247.1.tgz#8c8d08fcee11ca43cbb6059edb9933a29bdedc57"
9107-
integrity sha512-03wwQ5kPW4CYqhXvxTseMs2v6QuVwCtifVkON2UUyDg6Jp1+CaQpLAZK+sFNzQOExKp0Yvoug+fZOUb33ARwHQ==
9104+
flow-bin@^0.248:
9105+
version "0.248.1"
9106+
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.248.1.tgz#1d1e78ac8a1b8024dda5582b4832b605a00c16bd"
9107+
integrity sha512-WnISMV7p4rRY2LIMGnryR7Pnml9wFs0bTdniI1Dj2dXIJigOGfV74FjhMG7BmZkuKztNxlTvK56zpuhpcne+sg==
91089108

9109-
flow-remove-types@^2.247:
9109+
flow-remove-types@^2.248:
91109110
version "2.279.0"
91119111
resolved "https://registry.yarnpkg.com/flow-remove-types/-/flow-remove-types-2.279.0.tgz#3a3388d9158eba0f82c40d80d31d9640b883a3f5"
91129112
integrity sha512-bPFloMR/A2b/r/sIsf7Ix0LaMicCJNjwhXc4xEEQVzJCIz5u7C7XDaEOXOiqveKlCYK7DcBNn6R01Cbbc9gsYA==

0 commit comments

Comments
 (0)