Переглянути джерело

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

Michael Bromley 6 роки тому
батько
коміт
b01c76b95f
1 змінених файлів з 3 додано та 2 видалено
  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 { DocumentNode } from 'graphql';
 
 
 import { Type } from '../../../../shared/shared-types';
 import { Type } from '../../../../shared/shared-types';
@@ -88,9 +89,9 @@ export interface VendurePlugin {
 
 
     /**
     /**
      * @description
      * @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
      * @description