Add protocol property to serve.d.ts (#25267)

This commit is contained in:
Amdadul Haq
2025-12-02 03:43:14 +06:00
committed by GitHub
parent dce7a02f4d
commit 6745bdaa85

View File

@@ -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?
*