mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-30 12:50:40 +08:00
Fix #4620: Add module declaration for 'module' magic module
This commit is contained in:
1 parent
8005e28392
commit
9b073d0f81
2 files changed
+18
-1
No files matched your search
@@ -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;
|
||||
Reference in new issue
Block a user