UNPKG

graphql-extra-scalars

Version:

Collection of extra GraphQL scalar types like Email, URL, Password and more

5 lines (4 loc) 237 B
import { ValueNode } from 'graphql/language'; export declare type TypeCoercer<T> = (value: unknown) => T; declare const createParseLiteral: <T>(coerceType: TypeCoercer<T>) => (ast: ValueNode) => void | T; export { createParseLiteral, };