[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:
Josh Story
2023-08-30 10:32:25 -07:00
committed by GitHub
parent 2fba484cd0
commit d23b8b5dbf
2 changed files with 12 additions and 2 deletions
@@ -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;