mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
24 lines
485 B
TypeScript
24 lines
485 B
TypeScript
// Bun.js v
|
|
|
|
declare global {
|
|
function addEventListener(
|
|
name: "fetch",
|
|
callback: (event: FetchEvent) => void
|
|
): void;
|
|
}
|
|
|
|
declare global {
|
|
export interface FetchEvent {
|
|
/** HTTP client metadata. This is not implemented yet, do not use. */
|
|
readonly client: undefined;
|
|
|
|
/** HTTP request */
|
|
readonly request: InstanceType<Request>;
|
|
|
|
/** Render the response in the active HTTP request */
|
|
respondWith(response: Response): void;
|
|
}
|
|
}
|
|
|
|
export {};
|