Skip to content

Commit

Permalink
chore(core): Removed unnecessary function signature of plugin definition
Browse files Browse the repository at this point in the history
  • Loading branch information
sonntag-philipp committed Dec 16, 2024
1 parent 6d09ceb commit 3428ab9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/core/src/plugin/vendure-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,18 +90,15 @@ export interface APIExtensionDefinition {
* }`;
* ```
*/
schema?:
| DocumentNode
| (() => DocumentNode | undefined)
| ((schema?: GraphQLSchema) => DocumentNode | undefined);
schema?: DocumentNode | ((schema?: GraphQLSchema) => DocumentNode | undefined);
/**
* @description
* An array of resolvers for the schema extensions. Should be defined as [Nestjs GraphQL resolver](https://docs.nestjs.com/graphql/resolvers-map)
* classes, i.e. using the Nest `\@Resolver()` decorator etc.
*
* Passes the current schema as an optional argument, allowing the resolver to be based on the existing schema.
*/
resolvers?: Array<Type<any>> | (() => Array<Type<any>>) | ((schema?: GraphQLSchema) => Array<Type<any>>);
resolvers?: Array<Type<any>> | ((schema?: GraphQLSchema) => Array<Type<any>>);
/**
* @description
* A map of GraphQL scalar types which should correspond to any custom scalars defined in your schema.
Expand Down

0 comments on commit 3428ab9

Please sign in to comment.