mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-09 06:33:03 -04:00
fix lazyWebpack.construct, lint uwuify
This commit is contained in:
parent
b101e643d5
commit
e0bbdd89bd
2 changed files with 38 additions and 39 deletions
|
@ -25,7 +25,7 @@ export function lazyWebpack<T = any>(filter: FilterFn): T {
|
|||
has: (_, prop) => prop in getMod(),
|
||||
apply: (_, $this, args) => (getMod() as Function).apply($this, args),
|
||||
ownKeys: () => Reflect.ownKeys(getMod()),
|
||||
construct: (_, args, newTarget) => new newTarget(...args),
|
||||
construct: (_, args, newTarget) => Reflect.construct(getMod(), args, newTarget),
|
||||
deleteProperty: (_, prop) => delete getMod()[prop],
|
||||
defineProperty: (_, property, attributes) => !!Object.defineProperty(getMod(), property, attributes)
|
||||
}) as T;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue