Skip to content

Commit d8fb719

Browse files
authored
fix(scalars): Latitude and Longitude inconsistent types (#2182)
1 parent fae46bb commit d8fb719

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/scalars/Latitude.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export const GraphQLLatitude = /*#__PURE__*/ new GraphQLScalarType({
7373
return validate(ast.value, ast);
7474
},
7575
extensions: {
76-
codegenScalarType: 'string',
76+
codegenScalarType: 'string | number',
7777
jsonSchema: {
7878
title: 'Latitude',
7979
type: 'number',

src/scalars/Longitude.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export const GraphQLLongitude = /*#__PURE__*/ new GraphQLScalarType({
7575
extensions: {
7676
codegenScalarType: 'string | number',
7777
jsonSchema: {
78+
title: 'Longitude',
7879
type: 'number',
7980
minimum: MIN_LON,
8081
maximum: MAX_LON,

0 commit comments

Comments
 (0)