Skip to content

Commit b058656

Browse files
committed
Named types
1 parent f3c782b commit b058656

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

packages/react/src/ReactSharedInternalsClient.js

+10-9
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,20 @@ import {
1818
enableGestureTransition,
1919
} from 'shared/ReactFeatureFlags';
2020

21+
type onStartTransitionFinish = (Transition, mixed) => void;
22+
type onStartGestureTransitionFinish = (
23+
Transition,
24+
GestureProvider,
25+
?GestureOptions,
26+
transitionTypes: null | TransitionTypes,
27+
) => () => void;
28+
2129
export type SharedStateClient = {
2230
H: null | Dispatcher, // ReactCurrentDispatcher for Hooks
2331
A: null | AsyncDispatcher, // ReactCurrentCache for Cache
2432
T: null | Transition, // ReactCurrentBatchConfig for Transitions
25-
S: null | ((Transition, mixed) => void), // onStartTransitionFinish
26-
G:
27-
| null
28-
| ((
29-
Transition,
30-
GestureProvider,
31-
?GestureOptions,
32-
transitionTypes: null | TransitionTypes,
33-
) => () => void), // onStartGestureTransitionFinish
33+
S: null | onStartTransitionFinish,
34+
G: null | onStartGestureTransitionFinish,
3435
V: null | TransitionTypes, // Pending Transition Types for the Next Transition
3536

3637
// DEV-only

0 commit comments

Comments
 (0)