This commit is contained in:
commit
cfbcaa4851
25 changed files with 1096 additions and 0 deletions
14
types/bun.d.ts
vendored
Normal file
14
types/bun.d.ts
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
import type { Server } from "bun";
|
||||
|
||||
type Query = Record<string, string>;
|
||||
type Params = Record<string, string>;
|
||||
|
||||
declare global {
|
||||
type BunServer = Server;
|
||||
|
||||
interface ExtendedRequest extends Request {
|
||||
startPerf: number;
|
||||
query: Query;
|
||||
params: Params;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue