main
js 48 lines 1.19 KB
Raw
1 /**
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 *
7 * @flow
8 */
9
10 export * from './ReactFiberConfigNoopHydration';
11 export * from './ReactFiberConfigNoopScopes';
12 export * from './ReactFiberConfigNoopTestSelectors';
13 export * from './ReactFiberConfigNoopResources';
14 export * from './ReactFiberConfigNoopSingletons';
15 // createReactNoop will overwrite these with the mutation or persistence versions.
16 export * from './ReactFiberConfigNoopNoMutation';
17 export * from './ReactFiberConfigNoopNoPersistence';
18
19 export type HostContext = Object;
20
21 export type TextInstance = {
22 text: string,
23 id: number,
24 parent: number,
25 hidden: boolean,
26 context: HostContext,
27 };
28
29 export type Instance = {
30 type: string,
31 id: number,
32 parent: number,
33 children: Array<Instance | TextInstance>,
34 text: string | null,
35 prop: any,
36 hidden: boolean,
37 context: HostContext,
38 };
39
40 export type PublicInstance = Instance;
41
42 export type TransitionStatus = mixed;
43
44 export type Container = {
45 rootID: string,
46 children: Array<Instance | TextInstance>,
47 pendingChildren: Array<Instance | TextInstance>,
48 };