mirror of
https://github.com/Equicord/Equicord.git
synced 2025-07-01 09:24:23 -04:00
WebpackPatcher: Use way less closures (#3217)
This commit is contained in:
parent
5d482ff3bf
commit
306890aa13
10 changed files with 236 additions and 244 deletions
6
src/webpack/wreq.d.ts
vendored
6
src/webpack/wreq.d.ts
vendored
|
@ -200,12 +200,10 @@ export type AnyModuleFactory = ((this: ModuleExports, module: Module, exports: M
|
|||
[SYM_PATCHED_BY]?: Set<string>;
|
||||
};
|
||||
|
||||
export type WrappedModuleFactory = AnyModuleFactory & {
|
||||
export type PatchedModuleFactory = AnyModuleFactory & {
|
||||
[SYM_ORIGINAL_FACTORY]: AnyModuleFactory;
|
||||
[SYM_PATCHED_SOURCE]?: string;
|
||||
[SYM_PATCHED_BY]?: Set<string>;
|
||||
};
|
||||
|
||||
export type MaybeWrappedModuleFactory = AnyModuleFactory | WrappedModuleFactory;
|
||||
|
||||
export type WrappedModuleFactories = Record<PropertyKey, WrappedModuleFactory>;
|
||||
export type MaybePatchedModuleFactory = PatchedModuleFactory | AnyModuleFactory;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue