mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
FormData & Blog moved to declarations
This commit is contained in:
28
declarations.d.ts
vendored
28
declarations.d.ts
vendored
@@ -28,6 +28,34 @@ declare var console: Console;
|
||||
declare var global;
|
||||
declare var require;
|
||||
|
||||
//XMLHttpRequest-related
|
||||
interface FormData {
|
||||
append(name: any, value: any, blobName?: string): void;
|
||||
}
|
||||
|
||||
declare var FormData: {
|
||||
prototype: FormData;
|
||||
new (): FormData;
|
||||
}
|
||||
|
||||
interface Blob {
|
||||
size: number;
|
||||
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;
|
||||
}
|
||||
|
||||
// Global functions
|
||||
declare function Deprecated(target: Object, key?: string | symbol, value?: any): void;
|
||||
|
||||
|
||||
5
fetch/webidl.d.ts
vendored
5
fetch/webidl.d.ts
vendored
@@ -8,7 +8,4 @@ declare type USVString = string;
|
||||
declare type DOMString = string;
|
||||
|
||||
// see: https://fetch.spec.whatwg.org/#headersinit
|
||||
declare type OpenEndedDictionary = Object;
|
||||
|
||||
declare class FormData { }
|
||||
declare class Blob { }
|
||||
declare type OpenEndedDictionary = Object;
|
||||
Reference in New Issue
Block a user