Fix #4620: Add module declaration for 'module' magic module

This commit is contained in:
Kenneth G. Franqueiro
2015-06-14 01:22:13 -04:00
parent 8005e28392
commit 9b073d0f81
2 changed files with 18 additions and 1 deletions
+8
View File
@@ -41,3 +41,11 @@ require(['main'], (main: any, $: any, _: any, Backbone: any) => {
var recOne = require.config({ baseUrl: 'js' });
recOne(['core'], function (core: any) {/*some code*/});
// Tests for 'module' magic module typings
// (Using 'module' only actually makes sense in an external module)
import module = require('module');
var moduleConfig: any = module.config();
var moduleId: string = module.id;
var moduleUri: string = module.uri;