Remove docs about TransferProgress being browser-only (#223)

This commit is contained in:
Rikki Gibson 2018-09-11 15:15:59 -07:00 коммит произвёл GitHub
Родитель ed41e39d6e
Коммит f30b1e9f42
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -12,7 +12,7 @@ export type HttpMethods = "GET" | "PUT" | "POST" | "DELETE" | "PATCH" | "HEAD" |
export type HttpRequestBody = Blob | string | ArrayBuffer | ArrayBufferView | (() => NodeJS.ReadableStream);
/**
* Fired in response to upload or download progress (browser only).
* Fired in response to upload or download progress.
*/
export type TransferProgressEvent = {
/**
@ -67,10 +67,10 @@ export class WebResource {
abortSignal?: AbortSignalLike;
/** Callback which fires upon upload progress. Only used in the browser. */
/** Callback which fires upon upload progress. */
onUploadProgress?: (progress: TransferProgressEvent) => void;
/** Callback which fires upon download progress. Only used in the browser. */
/** Callback which fires upon download progress. */
onDownloadProgress?: (progress: TransferProgressEvent) => void;
constructor(
@ -434,12 +434,12 @@ export interface RequestOptionsBase {
timeout?: number;
/**
* Callback which fires upon upload progress. Only used in the browser.
* Callback which fires upon upload progress.
*/
onUploadProgress?: (progress: TransferProgressEvent) => void;
/**
* Callback which fires upon download progress. Only used in the browser.
* Callback which fires upon download progress.
*/
onDownloadProgress?: (progress: TransferProgressEvent) => void;