Skip to content

Commit

Permalink
feat(schema-builder): add TypeDefinitionsStorage.getAllEnumTypeDefini…
Browse files Browse the repository at this point in the history
…tions
  • Loading branch information
greatSumini committed Oct 30, 2021
1 parent e03a71e commit 6fe2556
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/schema-builder/storages/type-definitions.storage.ts
Expand Up @@ -49,6 +49,10 @@ export class TypeDefinitionsStorage {
return this.enumTypeDefinitions.get(obj);
}

getAllEnumTypeDefinitions(): EnumDefinition[] {
return Array.from(this.enumTypeDefinitions.values());
}

addUnions(unionDefs: UnionDefinition[]) {
unionDefs.forEach(item => this.unionTypeDefinitions.set(item.id, item));
}
Expand Down

0 comments on commit 6fe2556

Please sign in to comment.