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

Commit

Permalink
Make duplex stream constructor argument optional
Browse files Browse the repository at this point in the history
  • Loading branch information
rekmarks committed Jul 26, 2022
1 parent 10763e4 commit b5b1d27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/createDuplexJsonRpcStream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ interface DuplexJsonRpcStreamOptions {
* @returns The stream wrapping the duplex JSON-RPC engine.
*/
export default function createDuplexJsonRpcStream(
options: DuplexJsonRpcStreamOptions,
options: DuplexJsonRpcStreamOptions = {},
) {
const {
receiverMiddleware = [],
Expand Down

0 comments on commit b5b1d27

Please sign in to comment.