Skip to content

Commit

Permalink
Fix inheritsCustom function
Browse files Browse the repository at this point in the history
  • Loading branch information
fdodino committed Sep 15, 2023
1 parent 3385725 commit 87cf3b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,8 @@ const baseClass = 'Object'
const allParents = (module: Module) =>
module.supertypes.map(supertype => supertype.reference.target).flatMap(supertype => supertype?.hierarchy ?? [])

const inheritsCustom = (module: Module) => notEmpty(allParents(module).filter(element => element.name === baseClass))
const inheritsCustom = (module: Module) =>
notEmpty(allParents(module).filter(element => element.name !== baseClass))

const getReferencedModule = (parent: Node): Module | undefined => match(parent)(
when(ParameterizedType)(node => node.reference.target),
Expand Down

0 comments on commit 87cf3b6

Please sign in to comment.