deno.land / x / deno@v1.28.2 / ext / web / 06_streams_types.d.ts
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
// ** Internal Interfaces **
interface PendingAbortRequest { deferred: Deferred<void>; // deno-lint-ignore no-explicit-any reason: any; wasAlreadyErroring: boolean;}
// deno-lint-ignore no-explicit-anyinterface ReadRequest<R = any> { chunkSteps: (chunk: R) => void; closeSteps: () => void; // deno-lint-ignore no-explicit-any errorSteps: (error: any) => void;}
interface ReadIntoRequest { chunkSteps: (chunk: ArrayBufferView) => void; closeSteps: (chunk?: ArrayBufferView) => void; // deno-lint-ignore no-explicit-any errorSteps: (error: any) => void;}
interface PullIntoDescriptor { buffer: ArrayBuffer; bufferByteLength: number; byteOffset: number; byteLength: number; bytesFilled: number; elementSize: number; // deno-lint-ignore no-explicit-any viewConstructor: any; readerType: "default" | "byob" | "none";}
interface ReadableByteStreamQueueEntry { buffer: ArrayBufferLike; byteOffset: number; byteLength: number;}
interface ReadableStreamGetReaderOptions { mode?: "byob";}
interface ReadableStreamIteratorOptions { preventCancel?: boolean;}
interface ValueWithSize<T> { value: T; size: number;}
interface VoidFunction { (): void;}
interface ReadableStreamGenericReader<T> { readonly closed: Promise<void>; // deno-lint-ignore no-explicit-any cancel(reason?: any): Promise<void>;}
// ** Ambient Definitions and Interfaces not provided by fetch **
declare function queueMicrotask(callback: VoidFunction): void;
declare namespace Deno { function inspect(value: unknown, options?: Record<string, unknown>): string;}
Version Info