-
Notifications
You must be signed in to change notification settings - Fork 1
/
types.d.ts
38 lines (32 loc) · 900 Bytes
/
types.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
declare module "react-server-dom-webpack" {}
declare module "react-server-dom-webpack/client" {
import { ReactNode } from "react";
export function createFromFetch(
response: Promise<Response>,
): Promise<ReactNode>;
}
declare module "react-server-dom-webpack/server" {
import { ReactNode } from "react";
import { Writable } from "node:stream";
export function renderToPipeableStream(
node: ReactNode,
manifest: any,
): {
abort(reason: any): void;
pipe(destination: Writable): Writable;
};
}
declare module "react-server-dom-webpack/plugin" {
import type webpack from "webpack";
export default class ReactFlightWebpackPlugin {
constructor(options: {
isServer?: boolean;
clientReferences?: {
directory: string;
recursive: boolean;
include: RegExp;
};
});
apply(compiler: webpack.Compiler): void;
}
}