diff --git a/types/whatwg-streams/index.d.ts b/types/whatwg-streams/index.d.ts index c6d5ea893b..975151a74d 100644 --- a/types/whatwg-streams/index.d.ts +++ b/types/whatwg-streams/index.d.ts @@ -6,15 +6,15 @@ // TypeScript Version: 2.3 export interface ReadableStreamSource { - start?(controller: ReadableStreamDefaultController): void | Promise; - pull?(controller: ReadableStreamDefaultController): void | Promise; - cancel?(reason: any): void | Promise; + start?(controller: ReadableStreamDefaultController): void | Promise; + pull?(controller: ReadableStreamDefaultController): void | Promise; + cancel?(reason: any): void | Promise; } export interface ReadableByteStreamSource { - start?(controller: ReadableByteStreamController): void | Promise; - pull?(controller: ReadableByteStreamController): void | Promise; - cancel?(reason: any): void | Promise; + start?(controller: ReadableByteStreamController): void | Promise; + pull?(controller: ReadableByteStreamController): void | Promise; + cancel?(reason: any): void | Promise; type: "bytes"; autoAllocateChunkSize?: number; @@ -95,10 +95,10 @@ declare class ReadableStreamBYOBRequest { } interface WritableStreamSink { - start?(controller: WritableStreamDefaultController): void | Promise; - write?(chunk: W, controller?: WritableStreamDefaultController): void | Promise; - close?(controller: WritableStreamDefaultController): void | Promise; - abort?(reason: any): void | Promise; + start?(controller: WritableStreamDefaultController): void | Promise; + write?(chunk: W, controller?: WritableStreamDefaultController): void | Promise; + close?(controller: WritableStreamDefaultController): void | Promise; + abort?(reason: any): void | Promise; } declare class WritableStream { @@ -140,9 +140,9 @@ declare class CountQueuingStrategy { } declare interface TransformStreamTransformer { - start?(controller: TransformStreamDefaultController): void | Promise; - transform?(chunk: W, controller: TransformStreamDefaultController): void | Promise; - flush?(controller: TransformStreamDefaultController): void | Promise; + start?(controller: TransformStreamDefaultController): void | Promise; + transform?(chunk: W, controller: TransformStreamDefaultController): void | Promise; + flush?(controller: TransformStreamDefaultController): void | Promise; } declare class TransformStream implements WritableReadablePair, ReadableStream> {