mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
systemjs: type definitions for System universal dynamic module loader
https://github.com/systemjs/systemjs/issues/321
This commit is contained in:
@@ -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.'));
|
||||
Vendored
+21
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user