diagnostic-channel
Version:
Provides a context-saving pub/sub channel to connect diagnostic event publishers and subscribers
11 lines (10 loc) • 379 B
TypeScript
export declare type PatchFunction = (module: any, path: string) => any;
export interface IModulePatcher {
versionSpecifier: string;
patch: PatchFunction;
publisherName?: string;
}
export interface IModulePatchMap {
[key: string]: IModulePatcher[];
}
export declare function makePatchingRequire(knownPatches: IModulePatchMap): (moduleId: string) => any;