Skip to content

GraphQLScalarType error on 15.1.0 #2628

@gtolarc

Description

@gtolarc

It seems that an error about custom scalar type occurs in version 15.1.0. There was no problem at 15.0.0. (with https://github.com/taion/graphql-type-json)

src/schema/index.ts:25:9 - error TS2322: Type 'GraphQLScalarType' is not assignable to type 'GraphQLNamedType'.
  Type 'GraphQLScalarType' is not assignable to type 'GraphQLEnumType'.

25         GraphQLJSON,
           ~~~~~~~~~~~
src/schema/index.ts:26:9 - error TS2322: Type 'GraphQLScalarType' is not assignable to type 'GraphQLNamedType'.
  Type 'GraphQLScalarType' is not assignable to type 'GraphQLEnumType'.

26         GraphQLJSONObject,

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions