Skip to content

Commit 45c1d56

Browse files
authored
fix: correct type of it-length-prefixed 8.0.2 (#178)
chore: correct type of it-length-prefixed 8.0.2
1 parent 201adcb commit 45c1d56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crypto/streaming.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function encryptStream (handshake: IHandshake): Transform<Uint8Array> {
2121
}
2222

2323
// Decrypt received payload to the user
24-
export function decryptStream (handshake: IHandshake): Transform<Uint8Array|Uint8ArrayList> {
24+
export function decryptStream (handshake: IHandshake): Transform<Uint8ArrayList, Uint8Array> {
2525
return async function * (source) {
2626
for await (const chunk of source) {
2727
for (let i = 0; i < chunk.length; i += NOISE_MSG_MAX_LENGTH_BYTES) {

0 commit comments

Comments
 (0)