-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
60 lines (50 loc) · 2.07 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/* ********************************************* */
/* ** NOTE do not change directly: ** */
/* ** original source file is located at ** */
/* ** /assets/index.d.ts ** */
/* ********************************************* */
/**
* `mmir-webpack` integrates `mmir-lib` into _webpack_-built apps
*
* @module mmir-webpack
*/
/** <dummy comment: required for typedoc to correctly interpret above @module annotation> */
import { WebpackAppConfig as _WebpackAppConfig } from 'mmir-tooling';
import { Configuration as WebpackConfiguration, RuleSetRule as WebpackRuleSet } from 'webpack';
import * as webpack from 'webpack';
/**
*
* @module mmir-webpack
*/
export = mmirWebpackFunc;
/**
* apply the `mmirWebpackConfig` configuration the (existing) _webpack_
* configuration `webpackConfig`.
*
* @param webpackInstance the _webpack_ instance, i.e. `require('webpack')` (supports _webpack_ versions 3.x - 4.x)
*
* @param webpackConfig the (existing) _webpack_ configuration for the app: will be extended/modified with _mmir_
* _webpack_ configuration\
* NOTE this (modified) object will also be returned by this function, i.e. it is an INOUT parameter
*
* @param mmirWebpackConfig the _mmir_ configuration
*
* @returns the modified (paramater) `webpackConfig`
*
* @module mmir-webpack
*/
declare function mmirWebpackFunc(webpackInstance: typeof webpack, webpackConfig: WebpackConfiguration, mmirWebpackConfig: mmirWebpackFunc.WebpackAppConfig): WebpackConfiguration;
/**
* `mmir-webpack` integrates `mmir-lib` into _webpack_-built apps:
*
* include `mmir-lib`, configure _mmir_, include/compile/generate _mmir_ resources
* (e.g. grammars, state-models), _mmir_-plugins, ...
*
* @module mmir-webpack
*/
declare namespace mmirWebpackFunc {
export type WebpackAppConfig = _WebpackAppConfig;
export type WebpackModuleConfiguration = WebpackConfiguration;
export type WebpackModule = typeof webpack;
export type WebpackRule = WebpackRuleSet;
}