Encountering an issue with this straightforward GraphQL Custom Scalar as it throws a typescript error:
Error TS2351: This expression is not constructable. Type 'typeof import(".../graphql/node_modules/graphql/index")' has no construct signatures.
import GraphQLScalarType, { GraphQLInt } from 'graphql';
export const CustomScalar = new GraphQLScalarType({
...GraphQLInt,
name: "CustomScalar"
})
Any suggestions on what modifications are required to allow Typescript to successfully compile it?