Remove stream from type definitions (#1413)

This commit is contained in:
Kevin Moutet 2021-09-06 11:22:32 +02:00 committed by GitHub
parent acafb28661
commit fc42c38706
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

9
openpgp.d.ts vendored
View File

@ -562,15 +562,6 @@ interface NodeStream<T extends Data> extends BaseStream<T> { // copied+simplifie
type Stream<T extends Data> = WebStream<T> | NodeStream<T>;
type MaybeStream<T extends Data> = T | Stream<T>;
export namespace stream {
function readToEnd<T extends Data>(input: MaybeStream<T>, concat?: (list: T[]) => T): Promise<T>;
// concat
// slice
// clone
// webToNode
// nodeToWeb
}
/* ############## v5 GENERAL #################### */
type MaybeArray<T> = T | Array<T>;