main
js 47 lines 1.23 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 import type {Request} from 'react-server/src/ReactFlightServer';
11 import type {ReactComponentInfo} from 'shared/ReactTypes';
12
13 export * from '../ReactFlightServerConfigBundlerCustom';
14
15 export * from '../ReactFlightServerConfigDebugNoop';
16
17 export * from '../ReactFlightStackConfigV8';
18 export * from '../ReactServerConsoleConfigPlain';
19
20 export type Hints = null;
21 export type HintCode = string;
22 export type HintModel<T: HintCode> = null; // eslint-disable-line no-unused-vars
23
24 export const supportsRequestStorage = false;
25 export const requestStorage: AsyncLocalStorage<Request | void> = null as any;
26
27 export const supportsComponentStorage = false;
28 export const componentStorage: AsyncLocalStorage<ReactComponentInfo | void> =
29 null as any;
30
31 export function createHints(): Hints {
32 return null;
33 }
34
35 export type FormatContext = null;
36
37 export function createRootFormatContext(): FormatContext {
38 return null;
39 }
40
41 export function getChildFormatContext(
42 parentContext: FormatContext,
43 type: string,
44 props: Object,
45 ): FormatContext {
46 return parentContext;
47 }