Update stream type

This commit is contained in:
morrigan
2019-12-02 13:20:31 +01:00
parent bd53cb16fd
commit d8ad3fc1cd

View File

@ -3,7 +3,7 @@ import { Handshake } from "./handshake";
import { Buffer } from "buffer";
interface ReturnEncryptionWrapper {
(source: Iterable<Uint8Array>): any;
(source: Iterable<Uint8Array>): AsyncIterableIterator<Uint8Array>;
}
// Returns generator that encrypts payload from the user