mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[Flight] use opaque config for flight in dom-legacy renderer (#27313)
`dom-legacy` does not make sense for Flight. we could still type check the files but it adds maintenance burden in the inlinedHostConfigs whenever things change there. Going to make these configs opaque mixed types to quiet flow since no entrypoints use the flight code
This commit is contained in:
@@ -8,6 +8,16 @@
|
||||
*/
|
||||
|
||||
export * from 'react-client/src/ReactFlightClientConfigBrowser';
|
||||
export * from 'react-server-dom-webpack/src/ReactFlightClientConfigWebpackBundler';
|
||||
export * from 'react-dom-bindings/src/shared/ReactFlightClientConfigDOM';
|
||||
|
||||
export type Response = any;
|
||||
export opaque type SSRManifest = mixed;
|
||||
export opaque type ServerManifest = mixed;
|
||||
export opaque type ServerReferenceId = string;
|
||||
export opaque type ClientReferenceMetadata = mixed;
|
||||
export opaque type ClientReference<T> = mixed; // eslint-disable-line no-unused-vars
|
||||
export const resolveClientReference: any = null;
|
||||
export const resolveServerReference: any = null;
|
||||
export const preloadModule: any = null;
|
||||
export const requireModule: any = null;
|
||||
export const usedWithSSR = true;
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
import type {Request} from 'react-server/src/ReactFlightServer';
|
||||
|
||||
export * from 'react-server-dom-webpack/src/ReactFlightServerConfigWebpackBundler';
|
||||
export * from '../ReactFlightServerConfigBundlerCustom';
|
||||
export * from 'react-dom-bindings/src/server/ReactFlightServerConfigDOM';
|
||||
|
||||
export const supportsRequestStorage = false;
|
||||
|
||||
Reference in New Issue
Block a user