type Externals = ExternalItem[] | ExternalItem;
type ExternalItem =
| RegExp
| string
| (
| ((
data: ExternalItemFunctionData,
callback: (err?: Error | null, result?: ExternalItemValue) => void,
) => void)
| ((data: ExternalItemFunctionData) => Promise<ExternalItemValue>)
);
type ExternalItemValue =
| string[]
| boolean
| string
| {
[k: string]: any;
};
type ExternalItemFunctionData = {
context?: string;
contextInfo?: ModuleFactoryCreateDataContextInfo;
getResolve?: (
options?: ResolveOptions,
) =>
| ((
context: string,
request: string,
callback: (err?: Error, result?: string) => void,
) => void)
| ((context: string, request: string) => Promise<string>);
request?: string;
};
type ModuleFactoryCreateDataContextInfo = {
issuer: string;
compiler: string;
};