Browse Source

feat(server): Plugins can define any type of Nest Provider

Michael Bromley 6 years ago
parent
commit
b01c76b95f
1 changed files with 3 additions and 2 deletions
  1. 3 2
      server/src/config/vendure-plugin/vendure-plugin.ts

+ 3 - 2
server/src/config/vendure-plugin/vendure-plugin.ts

@@ -1,3 +1,4 @@
+import { Provider } from '@nestjs/common';
 import { DocumentNode } from 'graphql';
 
 import { Type } from '../../../../shared/shared-types';
@@ -88,9 +89,9 @@ export interface VendurePlugin {
 
     /**
      * @description
-     * The plugin may define custom providers (including GraphQL resolvers) which can then be injected via the Nest DI container.
+     * The plugin may define custom providers which can then be injected via the Nest DI container.
      */
-    defineProviders?(): Array<Type<any>>;
+    defineProviders?(): Provider[];
 
     /**
      * @description