mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
Add protocol property to serve.d.ts (#25267)
This commit is contained in:
9
packages/bun-types/serve.d.ts
vendored
9
packages/bun-types/serve.d.ts
vendored
@@ -1082,6 +1082,15 @@ declare module "bun" {
|
||||
*/
|
||||
readonly hostname: string | undefined;
|
||||
|
||||
/**
|
||||
* The protocol the server is listening on.
|
||||
*
|
||||
* - "http" for normal servers
|
||||
* - "https" when TLS is enabled
|
||||
* - null for unix sockets or when unavailable
|
||||
*/
|
||||
readonly protocol: "http" | "https" | null;
|
||||
|
||||
/**
|
||||
* Is the server running in development mode?
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user