diff options
author | 2023-01-10 14:36:00 -0800 | |
---|---|---|
committer | 2023-01-10 14:36:00 -0800 | |
commit | e945be72b42031fc73816fb2426a3c7573b30bd3 (patch) | |
tree | 7c0e4a01c4925c4eaa8cc113c60742d7c3c066d6 | |
parent | 3002a7e14f353c0c4db2d8758812ac11d14b072e (diff) | |
download | bun-e945be72b42031fc73816fb2426a3c7573b30bd3.tar.gz bun-e945be72b42031fc73816fb2426a3c7573b30bd3.tar.zst bun-e945be72b42031fc73816fb2426a3c7573b30bd3.zip |
Add some missing types
-rw-r--r-- | packages/bun-types/bun.d.ts | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/packages/bun-types/bun.d.ts b/packages/bun-types/bun.d.ts index a3bfa00b5..8eb664ce1 100644 --- a/packages/bun-types/bun.d.ts +++ b/packages/bun-types/bun.d.ts @@ -2617,7 +2617,7 @@ declare module "bun" { clearAll(): void; } - var plugin: BunPlugin; + const plugin: BunPlugin; interface Socket<Data = undefined> { /** @@ -2713,6 +2713,16 @@ declare module "bun" { * This will return undefined if the socket was created by {@link Bun.connect} or if the listener has already closed. */ readonly listener?: SocketListener; + + /** + * Remote IP address connected to the socket + */ + readonly remoteAddress: string; + + /** + * local port connected to the socket + */ + readonly localPort: number; } interface SocketListener<Options extends SocketOptions = SocketOptions> { |