#506 allow AMD modules to load from typescript
This commit is contained in:
parent
117739ce1c
commit
577d0f7039
1 changed files with 144 additions and 143 deletions
9
mithril.d.ts
vendored
9
mithril.d.ts
vendored
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue