Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
18
node_modules/next/dist/server/app-render/use-flight-response.d.ts
generated
vendored
Normal file
18
node_modules/next/dist/server/app-render/use-flight-response.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import type { ClientReferenceManifest } from '../../build/webpack/plugins/flight-manifest-plugin';
|
||||
import type { BinaryStreamOf } from './app-render';
|
||||
import type { DeepReadonly } from '../../shared/lib/deep-readonly';
|
||||
/**
|
||||
* Render Flight stream.
|
||||
* This is only used for renderToHTML, the Flight response does not need additional wrappers.
|
||||
*/
|
||||
export declare function useFlightStream<T>(flightStream: BinaryStreamOf<T>, clientReferenceManifest: DeepReadonly<ClientReferenceManifest>, nonce?: string): Promise<T>;
|
||||
/**
|
||||
* Creates a ReadableStream provides inline script tag chunks for writing hydration
|
||||
* data to the client outside the React render itself.
|
||||
*
|
||||
* @param flightStream The RSC render stream
|
||||
* @param nonce optionally a nonce used during this particular render
|
||||
* @param formState optionally the formState used with this particular render
|
||||
* @returns a ReadableStream without the complete property. This signifies a lazy ReadableStream
|
||||
*/
|
||||
export declare function createInlinedDataReadableStream(flightStream: ReadableStream<Uint8Array>, nonce: string | undefined, formState: unknown | null): ReadableStream<Uint8Array>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue