UNPKG

next

Version:

The React Framework

10 lines (9 loc) • 528 B
import type { AppPageModule } from '../route-modules/app-page/module'; /** * Encodes dev-validation errors into the RSC Flight bytes the dev overlay * revives. Must run in the runtime that produced the errors (the in-process * render or the validation worker) so the encode uses the matching * client-reference manifest and captures the live `Error` objects with their * stacks and digests. */ export declare function serializeValidationErrorsToFlight(componentMod: AppPageModule, errors: Error[]): Promise<Uint8Array[]>;