main
js 26 lines 597 Bytes
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 import type {ReactDebugInfo} from './ReactTypes';
11
12 export type ReactElement = {
13 $$typeof: any,
14 type: any,
15 key: any,
16 ref: any,
17 props: any,
18 // __DEV__ or for string refs
19 _owner: any,
20
21 // __DEV__
22 _store: {validated: 0 | 1 | 2, ...}, // 0: not validated, 1: validated, 2: force fail
23 _debugInfo: null | ReactDebugInfo,
24 _debugStack: Error,
25 _debugTask: null | ConsoleTask,
26 };