mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Remove redundant definitions
This commit is contained in:
22
tns-core-modules/tns-core-modules.d.ts
vendored
22
tns-core-modules/tns-core-modules.d.ts
vendored
@@ -14,28 +14,6 @@ interface Body {
|
|||||||
formData() : Promise<FormData>;
|
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 type HeaderInit = Headers|Array<string>;
|
||||||
|
|
||||||
declare function fetch(url: string, init?: RequestInit): Promise<Response>;
|
declare function fetch(url: string, init?: RequestInit): Promise<Response>;
|
||||||
|
|||||||
Reference in New Issue
Block a user