Merge branch 'typescript_defs_no_implicit_any' of github.com:cbowdon/mithril.js into cbowdon-typescript_defs_no_implicit_any
Conflicts: mithril.d.ts
This commit is contained in:
commit
7fb6146ecc
1 changed files with 4 additions and 4 deletions
8
mithril.d.ts
vendored
8
mithril.d.ts
vendored
|
|
@ -5,7 +5,7 @@ interface MithrilStatic {
|
||||||
(selector: string, children?: any): MithrilVirtualElement;
|
(selector: string, children?: any): MithrilVirtualElement;
|
||||||
prop(value?: any): (value?: any) => any;
|
prop(value?: any): (value?: any) => any;
|
||||||
withAttr(property: string, callback: (value: any) => void): (e: Event) => any;
|
withAttr(property: string, callback: (value: any) => void): (e: Event) => any;
|
||||||
module(rootElement: Element, module: MithrilModule): Object;
|
module(rootElement: Node, module: MithrilModule): Object;
|
||||||
trust(html: string): String;
|
trust(html: string): String;
|
||||||
render(rootElement: Element, children?: any): void;
|
render(rootElement: Element, children?: any): void;
|
||||||
render(rootElement: HTMLDocument, children?: any): void;
|
render(rootElement: HTMLDocument, children?: any): void;
|
||||||
|
|
@ -55,10 +55,10 @@ interface MithrilXHROptions {
|
||||||
unwrapError?(data: any): any;
|
unwrapError?(data: any): any;
|
||||||
serialize?(dataToSerialize: any): string;
|
serialize?(dataToSerialize: any): string;
|
||||||
deserialize?(dataToDeserialize: string): any;
|
deserialize?(dataToDeserialize: string): any;
|
||||||
extract?(xhr: XMLHttpRequest, options: MithrilXHROptions);
|
extract?(xhr: XMLHttpRequest, options: MithrilXHROptions): string;
|
||||||
type?(data: Object): void;
|
type?(data: Object): void;
|
||||||
config?(xhr: XMLHttpRequest, options: MithrilXHROptions)
|
config?(xhr: XMLHttpRequest, options: MithrilXHROptions): XMLHttpRequest;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare var Mithril: MithrilStatic;
|
declare var Mithril: MithrilStatic;
|
||||||
declare var m: MithrilStatic;
|
declare var m: MithrilStatic;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue