new WpwTypeDeclarationsBundler(plugin, infoProp)
Parameters:
| Name | Type | Description |
|---|---|---|
plugin | WpwPlugin | |
infoProp | string |
- Source
Members
externalTypings :Array.<string>
Type:
- Array.<string>
- Source
globalExternalImports :Array.<any>
Type:
- Array.<any>
- Source
Methods
(async) _bundle(options, padopt) → {Promise.<Exclude.<WpwPluginTaskResult, boolean>>}
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
options | WpwTypesDtsBundleOptions | ||
pad | string | <optional> |
- Source
Returns:
- Type:
- Promise.<Exclude.<WpwPluginTaskResult, boolean>>
applyOptions(options) → {WpwTypesDtsBundleOptions}
Parameters:
| Name | Type | Description |
|---|---|---|
options | WpwTypesDtsBundleOptions |
- Source
Returns:
- Type:
- WpwTypesDtsBundleOptions
(async) bundle(padopt) → {Promise.<Exclude.<WpwPluginTaskResult, boolean>>}
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
pad | string | <optional> |
- Source
Throws:
WpwError
Returns:
absolute path to type declarations bundle
- Type:
- Promise.<Exclude.<WpwPluginTaskResult, boolean>>
formatReference(file) → {string}
Parameters:
| Name | Type | Description |
|---|---|---|
file | string |
- Source
Returns:
- Type:
- string
getParams() → {WpwTypesBundleParams}
- Source
Returns:
- Type:
- WpwTypesBundleParams
printOptions(opts, params, pad) → {WpwTypesDtsBundleOptions}
Parameters:
| Name | Type | Description |
|---|---|---|
opts | WpwTypesDtsBundleOptions | |
params | * | |
pad | string |
- Source
Returns:
- Type:
- WpwTypesDtsBundleOptions
transform(data, cfg, build) → {Buffer}
Parameters:
| Name | Type | Description |
|---|---|---|
data | Buffer | |
cfg | WpwTypesDtsBundleOptions | |
build | WpwBuild |
- Source
Returns:
- Type:
- Buffer