mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
Merge webpack-env.* into webpack.*
This commit is contained in:
@@ -386,3 +386,22 @@ plugin = new webpack.ExtendedAPIPlugin();
|
||||
plugin = new webpack.NoErrorsPlugin();
|
||||
plugin = new webpack.WatchIgnorePlugin(paths);
|
||||
|
||||
//
|
||||
// http://webpack.github.io/docs/api-in-modules.html
|
||||
//
|
||||
|
||||
interface SomeModule {
|
||||
someMethod(): void;
|
||||
}
|
||||
|
||||
let someModule: SomeModule = require('./someModule');
|
||||
someModule.someMethod();
|
||||
|
||||
let context2 = require.context('./somePath', true);
|
||||
let contextModule: SomeModule = context2('./someModule');
|
||||
|
||||
require(['./someModule', './otherModule'], (someModule: SomeModule, otherModule: any) => {
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user