diff --git a/src/crypto.ts b/src/crypto.ts index fd0adda..86ee648 100644 --- a/src/crypto.ts +++ b/src/crypto.ts @@ -3,7 +3,7 @@ import { Handshake } from "./handshake"; import { Buffer } from "buffer"; interface ReturnEncryptionWrapper { - (source: Iterable): any; + (source: Iterable): AsyncIterableIterator; } // Returns generator that encrypts payload from the user