Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit e9a21be

Browse files
authored
Export Fetch API (#440)
1 parent 8662431 commit e9a21be

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

packages/tre/src/index.ts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,25 @@ import exitHook from "exit-hook";
66
import getPort from "get-port";
77
import stoppable from "stoppable";
88
import {
9+
BodyInit,
10+
File,
11+
FormData,
12+
Headers,
913
HeadersInit,
14+
ReferrerPolicy,
1015
Request,
16+
RequestCache,
17+
RequestCredentials,
18+
RequestDestination,
19+
RequestDuplex,
1120
RequestInfo,
1221
RequestInit,
22+
RequestMode,
23+
RequestRedirect,
1324
Response,
25+
ResponseInit,
26+
ResponseRedirectStatus,
27+
ResponseType,
1428
fetch,
1529
} from "undici";
1630
import { WebSocketServer } from "ws";
@@ -614,3 +628,25 @@ export * from "./plugins";
614628
export * from "./runtime";
615629
export * from "./shared";
616630
export * from "./storage";
631+
export {
632+
BodyInit,
633+
File,
634+
FormData,
635+
Headers,
636+
HeadersInit,
637+
ReferrerPolicy,
638+
Request,
639+
RequestCache,
640+
RequestCredentials,
641+
RequestDestination,
642+
RequestDuplex,
643+
RequestInfo,
644+
RequestInit,
645+
RequestMode,
646+
RequestRedirect,
647+
Response,
648+
ResponseInit,
649+
ResponseRedirectStatus,
650+
ResponseType,
651+
fetch,
652+
};

0 commit comments

Comments
 (0)