TypeScript defs: added return types where missing from MithrilXHROptions.

This commit is contained in:
Chris Bowdon 2014-09-07 18:00:39 +08:00
parent 0ee2d7f200
commit 7948ef9be5

6
mithril.d.ts vendored
View file

@ -55,10 +55,10 @@ interface MithrilXHROptions {
unwrapError?(data: any): any;
serialize?(dataToSerialize: any): string;
deserialize?(dataToDeserialize: string): any;
extract?(xhr: XMLHttpRequest, options: MithrilXHROptions);
extract?(xhr: XMLHttpRequest, options: MithrilXHROptions): string;
type?(data: Object): void;
config?(xhr: XMLHttpRequest, options: MithrilXHROptions)
config?(xhr: XMLHttpRequest, options: MithrilXHROptions): XMLHttpRequest;
}
declare var Mithril: MithrilStatic;
declare var m: MithrilStatic;
declare var m: MithrilStatic;