Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/whatwg-streams

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/whatwg-streams - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

27

whatwg-streams/index.d.ts

@@ -15,5 +15,5 @@ // Type definitions for Streams API

export interface ReadableByteStreamSource<R = ArrayBufferView> {
start?(controller: ReadableByteStreamController<R>): void | Promise<any>;
pull?(controller: ReadableByteStreamController<R>): void | Promise<any>;
export interface ReadableByteStreamSource {
start?(controller: ReadableByteStreamController): void | Promise<any>;
pull?(controller: ReadableByteStreamController): void | Promise<any>;
cancel?(reason: any): void | Promise<any>;

@@ -41,5 +41,10 @@

export interface ReadResult<T> {
done: boolean;
value: T;
}
declare class ReadableStream<R = ArrayBufferView> {
constructor(underlyingSource?: ReadableStreamSource<R>, strategy?: QueuingStrategy<R>);
constructor(underlyingSource?: ReadableByteStreamSource<R>, strategy?: QueuingStrategy<R>);
constructor(underlyingSource?: ReadableByteStreamSource, strategy?: QueuingStrategy<R>);

@@ -62,3 +67,3 @@ readonly locked: boolean;

cancel(reason: any): Promise<void>;
read(): Promise<IteratorResult<R>>;
read(): Promise<ReadResult<R>>;
releaseLock(): void;

@@ -73,3 +78,3 @@ }

cancel(reason: any): Promise<void>;
read<T extends ArrayBufferView>(view: T): Promise<IteratorResult<T>>;
read<T extends ArrayBufferView>(view: T): Promise<ReadResult<T>>;
releaseLock(): void;

@@ -86,13 +91,13 @@ }

declare class ReadableByteStreamController<R = ArrayBufferView> {
readonly byobRequest: ReadableStreamBYOBRequest<R>;
declare class ReadableByteStreamController {
readonly byobRequest: ReadableStreamBYOBRequest | undefined;
readonly desiredSize: number | null;
close(): void;
enqueue(chunk: R): void;
enqueue(chunk: ArrayBufferView): void;
error(e: any): void;
}
declare class ReadableStreamBYOBRequest<R = ArrayBufferView> {
readonly view: R;
declare class ReadableStreamBYOBRequest {
readonly view: Uint8Array;

@@ -99,0 +104,0 @@ respond(bytesWritten: number): void;

{
"name": "@types/whatwg-streams",
"version": "0.0.6",
"version": "0.0.7",
"description": "TypeScript definitions for Streams API",

@@ -30,4 +30,4 @@ "license": "MIT",

"dependencies": {},
"typesPublisherContentHash": "314fbf7cd05c86e172dc1d76644f0852847a7ab9b1dcb48d4eed6edd33cf7c9a",
"typesPublisherContentHash": "13c38164c311ba04b522db5e7cae0e7b50b32bf14307f30d8c98d11d9e181fb4",
"typeScriptVersion": "2.3"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Wed, 13 Jun 2018 19:16:57 GMT
* Last updated: Sat, 21 Jul 2018 02:05:50 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc