Compare commits

...

2 Commits

Author SHA1 Message Date
Derrick Hammer b7e337e966
*Update dist 2023-03-24 16:47:58 -04:00
Derrick Hammer e8ead4bb73
*Bug fix 2023-03-24 16:47:43 -04:00
2 changed files with 6 additions and 6 deletions

6
dist/index.js vendored
View File

@ -89,9 +89,9 @@ export const factory = function (type, module) {
if (typeof prop !== "function") { if (typeof prop !== "function") {
return prop; return prop;
} }
if (desc?.get) { }
return target[property]; if (desc?.get) {
} return target[property];
} }
return async (...args) => { return async (...args) => {
await target.loadLibs(module); await target.loadLibs(module);

View File

@ -147,9 +147,9 @@ export const factory = function <T extends Client = Client>(
if (typeof prop !== "function") { if (typeof prop !== "function") {
return prop; return prop;
} }
if (desc?.get) { }
return target[property as keyof T]; if (desc?.get) {
} return target[property as keyof T];
} }
return async (...args: any[]): Promise<any> => { return async (...args: any[]): Promise<any> => {
await target.loadLibs(module); await target.loadLibs(module);