INNER CODE UNIT · TypeScript
EnumInputMetadataBuilder
babyfish-ct/graphql-ts-client · api/src/EnumInputMetadata.ts:12
export class EnumInputMetadataBuilder {
private typeMap = new Map<string, ReadonlyArray<RawField> | undefined>();
private target?: EnumInputMetadataImpl;
add(
name: string,
fields?: ReadonlyArray<RawField>
): this {
this.typeMap.set(name, fields);
return this;
}
build(): EnumInputMetadata {
const target = new EnumInputMetadataImpl();
this.target = target;
for (const name of this.typeMap.keys()) {