Merge pull request #4087 from NativeScript/fix-dom-definitions

Remove redundant definitions
This commit is contained in:
Alexander Vakrilov
2017-05-01 17:48:59 +03:00
committed by GitHub

View File

@@ -14,28 +14,6 @@ interface Body {
formData() : Promise<FormData>;
}
declare enum RequestMode { "same-origin", "no-cors", "cors" }
declare enum RequestCredentials { "omit", "same-origin", "include" }
declare enum RequestCache { "default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached" }
interface Blob {
readonly size: number;
readonly type: string;
msClose(): void;
msDetachStream(): any;
slice(start?: number, end?: number, contentType?: string): Blob;
}
declare var Blob: {
prototype: Blob;
new (blobParts?: any[], options?: BlobPropertyBag): Blob;
}
interface BlobPropertyBag {
type?: string;
endings?: string;
}
declare type HeaderInit = Headers|Array<string>;
declare function fetch(url: string, init?: RequestInit): Promise<Response>;