Skip to content

Commit

Permalink
BREAKING(ext/web): remove remaining web types for compatibility (#25334)
Browse files Browse the repository at this point in the history
  • Loading branch information
petamoriken authored Sep 2, 2024
1 parent c62829f commit 9e6f41d
Showing 1 changed file with 0 additions and 93 deletions.
93 changes: 0 additions & 93 deletions ext/web/lib.deno_web.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -706,15 +706,6 @@ declare var ReadableStreamBYOBRequest: {
new (): never;
};

// TODO(petamoriken): Will be removed in v2.0.
/**
* @deprecated use `UnderlyingByteSource["pull"]` instead.
* @category Streams
*/
declare interface ReadableByteStreamControllerCallback {
(controller: ReadableByteStreamController): void | PromiseLike<void>;
}

/** @category Streams */
declare interface UnderlyingByteSource {
autoAllocateChunkSize?: number;
Expand Down Expand Up @@ -755,13 +746,6 @@ declare interface UnderlyingSource<R = any> {
type?: ReadableStreamType;
}

// TODO(petamoriken): Will be removed in v2.0.
/**
* @deprecated use `UnderlyingSourceCancelCallback` instead.
* @category Streams
*/
declare type ReadableStreamErrorCallback = UnderlyingSourceCancelCallback;

/** @category Streams */
declare interface UnderlyingSourceCancelCallback {
(reason?: any): void | PromiseLike<void>;
Expand All @@ -777,15 +761,6 @@ declare interface UnderlyingSourceStartCallback<R> {
(controller: ReadableStreamController<R>): any;
}

// TODO(petamoriken): Will be removed in v2.0.
/**
* @deprecated use `(controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>` type instead.
* @category Streams
*/
declare type ReadableStreamDefaultControllerCallback<R> = (
controller: ReadableStreamDefaultController<R>,
) => void | PromiseLike<void>;

/** @category Streams */
declare interface ReadableStreamDefaultController<R = any> {
readonly desiredSize: number | null;
Expand Down Expand Up @@ -815,13 +790,6 @@ declare var ReadableByteStreamController: {
new (): never;
};

// TODO(petamoriken): Will be removed in v2.0.
/**
* @deprecated use `StreamPipeOptions` instead.
* @category Streams
*/
declare type PipeOptions = StreamPipeOptions;

/** @category Streams */
declare interface StreamPipeOptions {
preventAbort?: boolean;
Expand All @@ -830,13 +798,6 @@ declare interface StreamPipeOptions {
signal?: AbortSignal;
}

// TODO(petamoriken): Will be removed in v2.0.
/**
* @deprecated use `QueuingStrategySize` instead.
* @category Streams
*/
declare type QueuingStrategySizeCallback<T = any> = QueuingStrategySize<T>;

/** @category Streams */
declare interface QueuingStrategySize<T = any> {
(chunk: T): number;
Expand Down Expand Up @@ -948,40 +909,16 @@ declare interface ReadableWritablePair<R = any, W = any> {
writable: WritableStream<W>;
}

// TODO(petamoriken): Will be removed in v2.0.
/**
* @deprecated use `UnderlyingSinkCloseCallback` instead.
* @category Streams
*/
declare type WritableStreamDefaultControllerCloseCallback =
UnderlyingSinkCloseCallback;

/** @category Streams */
declare interface UnderlyingSinkCloseCallback {
(): void | PromiseLike<void>;
}

// TODO(petamoriken): Will be removed in v2.0.
/**
* @deprecated use `UnderlyingSinkStartCallback` instead.
* @category Streams
*/
declare type WritableStreamDefaultControllerStartCallback =
UnderlyingSinkStartCallback;

/** @category Streams */
declare interface UnderlyingSinkStartCallback {
(controller: WritableStreamDefaultController): any;
}

// TODO(petamoriken): Will be removed in v2.0.
/**
* @deprecated use `UnderlyingSinkWriteCallback` instead.
* @category Streams
*/
declare type WritableStreamDefaultControllerWriteCallback<W> =
UnderlyingSinkWriteCallback<W>;

/** @category Streams */
declare interface UnderlyingSinkWriteCallback<W> {
(
Expand All @@ -990,13 +927,6 @@ declare interface UnderlyingSinkWriteCallback<W> {
): void | PromiseLike<void>;
}

// TODO(petamoriken): Will be removed in v2.0.
/**
* @deprecated use `UnderlyingSinkAbortCallback` instead.
* @category Streams
*/
declare type WritableStreamErrorCallback = UnderlyingSinkAbortCallback;

/** @category Streams */
declare interface UnderlyingSinkAbortCallback {
(reason?: any): void | PromiseLike<void>;
Expand Down Expand Up @@ -1105,14 +1035,6 @@ declare interface Transformer<I = any, O = any> {
writableType?: undefined;
}

// TODO(petamoriken): Will be removed in v2.0.
/**
* @deprecated use `TransformerFlushCallback` instead.
* @category Streams
*/
declare type TransformStreamDefaultControllerCallback<O> =
TransformerFlushCallback<O>;

/** @category Streams */
declare interface TransformerFlushCallback<O> {
(controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
Expand All @@ -1123,14 +1045,6 @@ declare interface TransformerStartCallback<O> {
(controller: TransformStreamDefaultController<O>): any;
}

// TODO(petamoriken): Will be removed in v2.0.
/**
* @deprecated use `TransformerTransformCallback` instead.
* @category Streams
*/
declare type TransformStreamDefaultControllerTransformCallback<I, O> =
TransformerTransformCallback<I, O>;

/** @category Streams */
declare interface TransformerTransformCallback<I, O> {
(
Expand Down Expand Up @@ -1203,13 +1117,6 @@ declare var MessageEvent: {
/** @category Events */
declare type Transferable = MessagePort | ArrayBuffer;

// TODO(petamoriken): Will be removed in v2.0.
/**
* @deprecated use `StructuredSerializeOptions` instead.
* @category Events
*/
declare type PostMessageOptions = StructuredSerializeOptions;

/** @category Platform */
declare interface StructuredSerializeOptions {
transfer?: Transferable[];
Expand Down

0 comments on commit 9e6f41d

Please sign in to comment.