UNPKG

@pothos/core

Version:

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

5 lines (4 loc) 497 B
import type { BaseEnum, EnumValues, PothosEnumValueConfig, SchemaTypes } from '../types/index.js'; 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