Skip to content
This repository was archived by the owner on Nov 9, 2023. It is now read-only.

Commit b5b1d27

Browse files
committed
Make duplex stream constructor argument optional
1 parent 10763e4 commit b5b1d27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/createDuplexJsonRpcStream.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ interface DuplexJsonRpcStreamOptions {
3232
* @returns The stream wrapping the duplex JSON-RPC engine.
3333
*/
3434
export default function createDuplexJsonRpcStream(
35-
options: DuplexJsonRpcStreamOptions,
35+
options: DuplexJsonRpcStreamOptions = {},
3636
) {
3737
const {
3838
receiverMiddleware = [],

0 commit comments

Comments
 (0)