UNPKG

1.08 kBTypeScriptView Raw
1import type { GraphQLNamedType } from './definition';
2import { GraphQLScalarType } from './definition';
3/**
4 * Maximum possible Int value as per GraphQL Spec (32-bit signed integer).
5 * n.b. This differs from JavaScript's numbers that are IEEE 754 doubles safe up-to 2^53 - 1
6 * */
7export declare const GRAPHQL_MAX_INT = 2147483647;
8/**
9 * Minimum possible Int value as per GraphQL Spec (32-bit signed integer).
10 * n.b. This differs from JavaScript's numbers that are IEEE 754 doubles safe starting at -(2^53 - 1)
11 * */
12export declare const GRAPHQL_MIN_INT = -2147483648;
13export declare const GraphQLInt: GraphQLScalarType<number, number>;
14export declare const GraphQLFloat: GraphQLScalarType<number, number>;
15export declare const GraphQLString: GraphQLScalarType<string, string>;
16export declare const GraphQLBoolean: GraphQLScalarType<boolean, boolean>;
17export declare const GraphQLID: GraphQLScalarType<string, string>;
18export declare const specifiedScalarTypes: ReadonlyArray<GraphQLScalarType>;
19export declare function isSpecifiedScalarType(type: GraphQLNamedType): boolean;