starpc 0.10.3 → 0.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/srpc/stream.d.ts +1 -1
- package/package.json +1 -1
- package/srpc/stream.ts +1 -1
package/dist/srpc/stream.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ import type { Packet } from './rpcproto.pb.js';
|
|
|
2
2
|
import type { Duplex } from 'it-stream-types';
|
|
3
3
|
import { Uint8ArrayList } from 'uint8arraylist';
|
|
4
4
|
export declare type PacketHandler = (packet: Packet) => Promise<void>;
|
|
5
|
-
export declare type Stream = Duplex<Uint8ArrayList
|
|
5
|
+
export declare type Stream = Duplex<Uint8ArrayList | Uint8Array, Uint8Array>;
|
|
6
6
|
export declare type OpenStreamFunc = () => Promise<Stream>;
|
package/package.json
CHANGED
package/srpc/stream.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { Uint8ArrayList } from 'uint8arraylist'
|
|
|
6
6
|
export type PacketHandler = (packet: Packet) => Promise<void>
|
|
7
7
|
|
|
8
8
|
// Stream is an open connection.
|
|
9
|
-
export type Stream = Duplex<Uint8ArrayList
|
|
9
|
+
export type Stream = Duplex<Uint8ArrayList | Uint8Array, Uint8Array>
|
|
10
10
|
|
|
11
11
|
// OpenStreamFunc is a function to start a new RPC by opening a Stream.
|
|
12
12
|
export type OpenStreamFunc = () => Promise<Stream>
|