graphql-scalars
Version:
A collection of scalar types not included in base GraphQL.
14 lines (13 loc) • 346 B
text/typescript
import { GraphQLScalarType } from 'graphql';
/**
* An Currency Scalar.
*
* Input:
* This scalar takes a currency string as input and
* formats it to currency in cents.
*
* Output:
* This scalar serializes currency in cents to
* currency strings.
*/
export declare const GraphQLUSCurrency: GraphQLScalarType<number, string>;