Merge pull request #5043 from NathanWalker/master

systemjs: type definitions for System universal dynamic module loader
This commit is contained in:
Masahiro Wakame
2015-07-28 23:22:39 +09:00
2 changed files with 31 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
/// <reference path="systemjs.d.ts" />
import System = require('systemjs');
System.config({
baseURL: '/',
paths: {'*': '*.js?v=0.18.4'}
});
System.import('app');
+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;
}