webpack/declarations/plugins/sharing/ProvideSharedPlugin.d.ts

49 lines
1.5 KiB
TypeScript
Raw Normal View History

2020-05-23 22:08:51 +08:00
/*
* This file was automatically generated.
* DO NOT MODIFY BY HAND.
* Run `yarn special-lint-fix` to update
*/
/**
* Modules that should be provided as shared modules to the share scope. When provided, property name is used as share key, otherwise share key is automatically inferred from request.
*/
export type Provides = (ProvidesItem | ProvidesObject)[] | ProvidesObject;
/**
* Request to a module that should be provided as shared module to the share scope.
*/
export type ProvidesItem = string;
export interface ProvideSharedPluginOptions {
/**
* Modules that should be provided as shared modules to the share scope. When provided, property name is used as share key, otherwise share key is automatically inferred from request.
*/
provides: Provides;
/**
2020-05-25 16:50:37 +08:00
* Share scope name used for all provided modules (defaults to 'default').
2020-05-23 22:08:51 +08:00
*/
shareScope?: string;
}
/**
* Modules that should be provided as shared modules to the share scope. Property names are used as share keys.
*/
export interface ProvidesObject {
/**
* Modules that should be provided as shared modules to the share scope.
*/
[k: string]: ProvidesConfig | ProvidesItem;
}
/**
* Advanced configuration for modules that should be provided as shared modules to the share scope.
*/
export interface ProvidesConfig {
/**
* Request to a module that should be provided as shared module to the share scope.
*/
import: ProvidesItem;
/**
2020-05-25 16:50:37 +08:00
* Share scope name.
2020-05-23 22:08:51 +08:00
*/
shareScope?: string;
version?: (number | string)[] | string;
}