export type RootName = 'Query' | 'Mutation' | 'Subscription' ; export const rootNames = { Query : 'Query' , Mutation : 'Mutation' , Subscription : 'Subscription' , } as const ; export const rootNameValues = Object . values ( rootNames ) ; export const isRootName = ( x ) : x is RootName => rootNameValues . includes ( x ) ; export type ScalarName = 'Int' | 'Float' | 'String' | 'ID' | 'Boolean' ; export const scalarsNameValues = [ 'Int' , 'Float' , 'String' , 'ID' , 'Boolean' ] ; export const isScalarType = ( name ) : boolean => scalarsNameValues . includes ( name as any ) ;