Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export * from 'react-client/src/ReactClientConsoleConfigPlain';
export type ModuleLoading = null;
export type ServerConsumerModuleMap = null;
export opaque type ServerManifest = null;
export opaque type ServerReferenceId = string;
export type ServerReferenceId = string;
export opaque type ClientReferenceMetadata = null;
export opaque type ClientReference<T> = null; // eslint-disable-line no-unused-vars

Expand All @@ -43,7 +43,7 @@ export function resolveClientReference<T>(

export function resolveServerReference<T>(
config: ServerManifest,
id: mixed,
id: ServerReferenceId,
): ClientReference<T> {
throw new Error(
'renderToHTML should not have emitted Server References. This is a bug in React.',
Expand Down
2 changes: 1 addition & 1 deletion packages/react-server/src/ReactFlightActionServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function bindArgs(fn: any, args: any) {
function loadServerReference<T>(
bundlerConfig: ServerManifest,
metaData: {
id: string,
id: ServerReferenceId,
bound: null | Promise<Array<any>>,
},
): Promise<T> {
Expand Down
Loading