Setu-TS
    Preparing search index...

    Interface GraphqlModuleLike

    The structural shape of a graphql@16 module — the external boundary (M70i X6-3).

    This is deliberately looser than the internal GraphqlRuntime: it references only the public GraphqlSchemaLike and unknown, so a genuine graphql module is assignable to it without a cast — adaptGraphqlModule(graphql) type-checks, which is the X6-3 gate. The precise structural types live on GraphqlRuntime (internal); the loader bridges the two with a per-member cast, so nothing here is read at runtime.

    Declared with method syntax, not indexed access into GraphqlRuntime: an indexed access like validate: GraphqlRuntime['validate'] produces a property of function type, which strictFunctionTypes checks contravariantly, so the real module's concrete GraphQLSchema/DocumentNode parameters would reject the facade's structural ones. Method syntax is checked bivariantly, which is what lets a genuine graphql module assign here.

    interface GraphqlModuleLike {
        GraphQLError: new (message: string, options?: undefined) => unknown;
        NoSchemaIntrospectionCustomRule: unknown;
        specifiedRules: readonly unknown[];
        buildSchema(source: unknown): GraphqlSchemaLike;
        execute(
            args: {
                contextValue?: unknown;
                document: unknown;
                operationName?: string | null;
                rootValue?: unknown;
                schema: GraphqlSchemaLike;
                variableValues?: unknown;
            },
        ): unknown;
        getOperationAST(document: unknown, operationName?: string | null): unknown;
        parse(source: unknown): unknown;
        subscribe(
            args: {
                contextValue?: unknown;
                document: unknown;
                operationName?: string | null;
                rootValue?: unknown;
                schema: GraphqlSchemaLike;
                variableValues?: unknown;
            },
        ): unknown;
        validate(
            schema: GraphqlSchemaLike,
            document: unknown,
            rules?: readonly unknown[],
        ): unknown;
        validateSchema(schema: GraphqlSchemaLike): unknown;
    }
    Index
    GraphQLError: new (message: string, options?: undefined) => unknown

    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.

    NoSchemaIntrospectionCustomRule: unknown

    The no-schema-introspection validation rule.

    specifiedRules: readonly unknown[]

    The specified (built-in) validation rules.

    • Execute a document; the result carries data and/or errors.

      Parameters

      • args: {
            contextValue?: unknown;
            document: unknown;
            operationName?: string | null;
            rootValue?: unknown;
            schema: GraphqlSchemaLike;
            variableValues?: unknown;
        }

      Returns unknown

    • Subscribe to a document; the result is an async iterable or a single error result.

      Parameters

      • args: {
            contextValue?: unknown;
            document: unknown;
            operationName?: string | null;
            rootValue?: unknown;
            schema: GraphqlSchemaLike;
            variableValues?: unknown;
        }

      Returns unknown