mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
Most CLI tools have the style convention of referring to themselves in lowercase. It is, after all, the name that users type in when using the tool. This PR maintains that convention in bun. "Drop the uppercase B, it's cleaner"
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 {};
|