Skip to content

Commit 47f0dbd

Browse files
committed
Flow fixes for test renderer
1 parent de04acb commit 47f0dbd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/react-test-renderer/src/ReactFiberConfigTestHost.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ export const warnsIfNotActing = true;
268268
export const scheduleTimeout = setTimeout;
269269
export const cancelTimeout = clearTimeout;
270270

271-
export const noTimeout = -1;
271+
export const noTimeout: -1 = -1;
272272

273273
// -------------------
274274
// Mutation

packages/react-test-renderer/src/ReactTestRenderer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ import {
6161
} from 'shared/ReactFeatureFlags';
6262

6363
import noop from 'shared/noop';
64+
import type {WorkTag} from 'react-reconciler/src/ReactWorkTags';
6465

6566
const defaultOnDefaultTransitionIndicator: () => void | (() => void) = noop;
6667

@@ -244,7 +245,7 @@ function toTree(node: null | Fiber): $FlowFixMe {
244245
}
245246
}
246247

247-
const validWrapperTypes = new Set([
248+
const validWrapperTypes: Set<WorkTag> = new Set([
248249
FunctionComponent,
249250
ClassComponent,
250251
HostComponent,

0 commit comments

Comments
 (0)