UNPKG

@terabits/grapi

Version:

Grapi Schema Generator For GraphQL Server

19 lines (18 loc) 583 B
import Field from './field'; import EnumType from './namedType/enumType'; export declare type EnumTypeOrThunk = EnumType | (() => EnumType); export default class EnumField extends Field { private enumType; constructor({ nonNull, list, nonNullItem, unique, readOnly, enumType, }: { nonNull?: boolean; list?: boolean; nonNullItem?: boolean; unique?: boolean; readOnly?: boolean; enumType: EnumTypeOrThunk; }); getTypename(): string; getValues(): string[]; getDescription(): string; private resolveEnumType; }