aboutsummaryrefslogtreecommitdiff
path: root/packages/bun-types/bun.d.ts
diff options
context:
space:
mode:
authorGravatar dave caruso <me@paperdave.net> 2023-06-29 23:36:18 -0400
committerGravatar GitHub <noreply@github.com> 2023-06-29 20:36:18 -0700
commitb9460087e391c454f323390a42902a3ed024c8bc (patch)
treed271cce864ac8f3a728f8335d5f9952df0a4a1fb /packages/bun-types/bun.d.ts
parentc42a00f9df7423e60a23a1194731ca7c85a7d16f (diff)
downloadbun-b9460087e391c454f323390a42902a3ed024c8bc.tar.gz
bun-b9460087e391c454f323390a42902a3ed024c8bc.tar.zst
bun-b9460087e391c454f323390a42902a3ed024c8bc.zip
Fixes `node:http` and `node:stream` so `ytdl-core` works. (#3452)
* fix crash in readablestate * make node:https request+get actually use https * use a native readablestream in IncomingMessage * tweaks * fix abort crash * emit close by default * remove abort. this isnt a real function * add validate functions, fixup some other requested changes. not done yet * Update WebCoreJSBuiltins.cpp * Update JSReadableState.cpp * Add some missing exports --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'packages/bun-types/bun.d.ts')
-rw-r--r--packages/bun-types/bun.d.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/bun-types/bun.d.ts b/packages/bun-types/bun.d.ts
index 4c10212f2..86ded9aa0 100644
--- a/packages/bun-types/bun.d.ts
+++ b/packages/bun-types/bun.d.ts
@@ -1912,7 +1912,9 @@ declare module "bun" {
export interface TLSWebSocketServeOptions<WebSocketDataType = undefined>
extends WebSocketServeOptions<WebSocketDataType>,
- TLSOptions {}
+ TLSOptions {
+ tls?: TLSOptions;
+ }
export interface Errorlike extends Error {
code?: string;
errno?: number;
@@ -2023,6 +2025,8 @@ declare module "bun" {
* The values are SSL options objects.
*/
serverNames?: Record<string, TLSOptions>;
+
+ tls?: TLSOptions;
}
/**