systemjs: type definitions for System universal dynamic module loader

https://github.com/systemjs/systemjs/issues/321
This commit is contained in:
Nathan Walker
2015-07-23 10:45:23 -07:00
parent a8db6480b1
commit 83af898254
2 changed files with 33 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
/// <reference path="systemjs.d.ts" />
import System = require('systemjs');
System.config({
baseURL: '/',
paths: {'*': '*.js?v=0.18.4'}
});
System.import('app')
.catch(e => console.error(e,
'There was an error loading.'));
+21
View File
@@ -0,0 +1,21 @@
// Type definitions for System.js 0.18.4
// Project: https://github.com/systemjs/systemjs
// Definitions by: Ludovic HENIN <https://github.com/ludohenin/>, Nathan Walker <https://github.com/NathanWalker/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface System {
import(name: string): any;
defined: any;
amdDefine: () => void;
amdRequire: () => void;
baseURL: string;
paths: { [key: string]: string };
meta: { [key: string]: Object };
config: any;
}
declare var System: System;
declare module "systemjs" {
export = System;
}