1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-21 23:04:45 -05:00

BREAKING(ext/web): remove remaining web types for compatibility (#25334)

This commit is contained in:
Kenta Moriuchi 2024-09-03 01:35:10 +09:00 committed by GitHub
parent c62829fc03
commit 9e6f41df66
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
@ -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>;
@ -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;
@ -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;
@ -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;
@ -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> {
(
@ -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>;
@ -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>;
@ -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> {
(
@ -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[];