Skip to content

Commit

Permalink
Merge pull request #3452 from erikwrede/chore/add-get-all-union-defs
Browse files Browse the repository at this point in the history
chore: add function to get all union defs
  • Loading branch information
kamilmysliwiec authored Feb 17, 2025
2 parents 75dd4bf + 9e6b638 commit faefeb6
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ export class TypeDefinitionsStorage {
return this.unionTypeDefinitions.get(key);
}

getAllUnionDefinitions(): UnionDefinition[] {
return Array.from(this.unionTypeDefinitions.values());
}

addInterfaces(interfaceDefs: InterfaceTypeDefinition[]) {
interfaceDefs.forEach((item) =>
this.interfaceTypeDefinitions.set(item.target, item),
Expand Down

0 comments on commit faefeb6

Please sign in to comment.