Browse Source

chore(core): Fix linter errors

Michael Bromley 4 years ago
parent
commit
0d25805e0a

+ 1 - 1
packages/core/src/api/config/configure-graphql-module.ts

@@ -44,7 +44,7 @@ export interface GraphQLApiOptions {
     playground: boolean | any;
     // tslint:disable-next-line:ban-types
     resolverModule: Function;
-    validationRules: ((context: ValidationContext) => any)[];
+    validationRules: Array<(context: ValidationContext) => any>;
 }
 
 /**

+ 2 - 2
packages/core/src/config/vendure-config.ts

@@ -114,7 +114,7 @@ export interface ApiOptions {
      *
      * @default []
      */
-    adminApiValidationRules?: ((context: ValidationContext) => any)[];
+    adminApiValidationRules?: Array<(context: ValidationContext) => any>;
     /**
      * @description
      * Custom functions to use as additional validation rules when validating the schema for the shop GraphQL API
@@ -122,7 +122,7 @@ export interface ApiOptions {
      *
      * @default []
      */
-    shopApiValidationRules?: ((context: ValidationContext) => any)[];
+    shopApiValidationRules?: Array<(context: ValidationContext) => any>;
     /**
      * @description
      * The name of the property which contains the token of the