Skip to content

apollo4.d.ts has wrong type for createApollo4QueryValidationPlugin #219

@l3dotdev

Description

@l3dotdev

Package version: 5.3.0

The latest package version has this type for the apollo4 plugin create function:

export function createApollo4QueryValidationPlugin ( options: { schema?: GraphQLSchema } ) : ApolloServerPlugin;

The expected type for this function is as follows:

// from index.d.ts
interface PluginOptions {
    formats: Record<string, (value: unknown) => boolean>;
}

export function createApollo4QueryValidationPlugin ( options: PluginOptions ) : ApolloServerPlugin;

I am willing to create a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions