File tree 1 file changed +14
-7
lines changed 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change 1
- import { GraphQLScalarType } from './definition' ;
1
+ import { GraphQLScalarType , isScalarType } from './definition' ;
2
2
3
- export const GraphQLInt : GraphQLScalarType ;
4
- export const GraphQLFloat : GraphQLScalarType ;
5
- export const GraphQLString : GraphQLScalarType ;
6
- export const GraphQLBoolean : GraphQLScalarType ;
7
- export const GraphQLID : GraphQLScalarType ;
3
+ export const GraphQLInt : GraphQLScalarType & { name : 'Int' } ;
4
+ export const GraphQLFloat : GraphQLScalarType & { name : 'Float' } ;
5
+ export const GraphQLString : GraphQLScalarType & { name : 'String' } ;
6
+ export const GraphQLBoolean : GraphQLScalarType & { name : 'Boolean' } ;
7
+ export const GraphQLID : GraphQLScalarType & { name : 'ID' } ;
8
+
9
+ export type SpecifiedScalarType =
10
+ | typeof GraphQLInt
11
+ | typeof GraphQLFloat
12
+ | typeof GraphQLString
13
+ | typeof GraphQLBoolean
14
+ | typeof GraphQLID ;
8
15
9
16
export const specifiedScalarTypes : ReadonlyArray < GraphQLScalarType > ;
10
17
11
- export function isSpecifiedScalarType ( type : any ) : type is GraphQLScalarType ;
18
+ export function isSpecifiedScalarType ( type : any ) : type is SpecifiedScalarType ;
You can’t perform that action at this time.
0 commit comments