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);