UNPKG

@pothos/core

Version:

Pothos (formerly GiraphQL) is a plugin based schema builder for creating code-first GraphQL schemas in typescript

4 lines 487 B
import type { BaseEnum, EnumValues, PothosEnumValueConfig, SchemaTypes } from '../types'; export declare function normalizeEnumValues<Types extends SchemaTypes>(values: EnumValues<SchemaTypes>): Record<string, PothosEnumValueConfig<Types>>; export declare function valuesFromEnum<Types extends SchemaTypes>(Enum: BaseEnum, values?: Record<string, Omit<PothosSchemaTypes.EnumValueConfig<Types>, 'value'>>): Record<string, PothosEnumValueConfig<Types>>; //# sourceMappingURL=enums.d.ts.map