Skip to content

Codegen typesPrefix not supported? #595

@ziimakc

Description

@ziimakc

If I use typesPrefix codegen option to add prefix for generated types it doesn't apply to generated mercurius-js specific types.

For example:

declare module "mercurius" {
	interface IResolvers
		extends Resolvers<import("mercurius").MercuriusContext> {}
	interface MercuriusLoaders extends Loaders {}
}

Will point to Resolvers interface which is named GqlResolvers in generated file.

Is there a way to resolve this or does it needs to be fixed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions