FormData & Blog moved to declarations

This commit is contained in:
Vladimir Enchev
2015-07-10 13:43:58 +03:00
parent 44e6014d3c
commit 417f0d4721
2 changed files with 29 additions and 4 deletions

28
declarations.d.ts vendored
View File

@@ -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
View File

@@ -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;