From e8ead4bb73a057fd5353ba76881e578c2d15c991 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 24 Mar 2023 16:47:43 -0400 Subject: [PATCH] *Bug fix --- src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index fbcef9e..c6ec911 100644 --- a/src/index.ts +++ b/src/index.ts @@ -147,9 +147,9 @@ export const factory = function ( if (typeof prop !== "function") { 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 => { await target.loadLibs(module);