Skip to content

Commit

Permalink
Merge 6ff3eb4 into ce733c1
Browse files Browse the repository at this point in the history
  • Loading branch information
ktutnik committed Jan 17, 2023
2 parents ce733c1 + 6ff3eb4 commit df25372
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/reflect/src/parser.ts
Expand Up @@ -206,12 +206,8 @@ function parseMethods(owner: Class): MethodReflection[] {
return result
}

function isFunction(owner:Class, member:string) {
const descriptor = Object.getOwnPropertyDescriptor(owner, member)
return typeof descriptor?.value === "function"
}

function parseProperties(owner: Class): PropertyReflection[] {
const isFunction = (owner:Class, member:string) => typeof Object.getOwnPropertyDescriptor(owner, member)?.value === "function"
const result: PropertyReflection[] = []
const members = getClassMembers(owner)
for (const name of members) {
Expand Down

0 comments on commit df25372

Please sign in to comment.