Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export GRAPHQL_MAX_INT and GRAPHQL_MIN_INT #3355

Merged
merged 3 commits into from Nov 16, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/type/scalars.ts
Expand Up @@ -14,8 +14,8 @@ import { GraphQLScalarType } from './definition';
//
// n.b. JavaScript's integers are safe between -(2^53 - 1) and 2^53 - 1 because
// they are internally represented as IEEE 754 doubles.
const MAX_INT = 2147483647;
const MIN_INT = -2147483648;
export const MAX_INT = 2147483647;
tofran marked this conversation as resolved.
Show resolved Hide resolved
export const MIN_INT = -2147483648;

export const GraphQLInt = new GraphQLScalarType<number>({
name: 'Int',
Expand Down