#506 allow AMD modules to load from typescript

This commit is contained in:
Leo Horie 2015-03-24 20:45:43 -04:00
parent 117739ce1c
commit 577d0f7039

9
mithril.d.ts vendored
View file

@ -1,5 +1,5 @@
//Mithril type definitions for Typescript
declare module _mithril {
interface MithrilStatic {
(selector: string, attributes: MithrilAttributes, ...children: Array<string|MithrilVirtualElement>): MithrilVirtualElement;
@ -156,10 +156,11 @@ interface MithrilXHROptions {
config?(xhr: XMLHttpRequest, options: MithrilXHROptions): XMLHttpRequest;
dataType?: string;
}
}
declare var Mithril: MithrilStatic;
declare var m: MithrilStatic;
declare var Mithril: _mithril.MithrilStatic;
declare var m: _mithril.MithrilStatic;
declare module 'mithril' {
declare module "mithril" {
export = m;
}