property GraphqlModuleLike.GraphQLError

The graphql GraphQLError constructor. options is undefined (not a modeled object) so the real typeof GraphQLError — whose constructor is new (message: string, options?: GraphQLErrorOptions) — stays assignable: contravariance requires the facade's options to be assignable to GraphQLErrorOptions | undefined, and undefined is.

Type

new (
message: string,
options?: undefined
) => unknown

Usage

import { type GraphqlModuleLike } from "graphql-plugin/src/index.ts";