Browse Source

fix(core): Loosen typing of custom field relation inverseSide function

The previous typing was causing TS compiler errors
Michael Bromley 2 years ago
parent
commit
a9696c92ee
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/core/src/config/custom-field/custom-field-types.ts

+ 1 - 1
packages/core/src/config/custom-field/custom-field-types.ts

@@ -100,7 +100,7 @@ export type RelationCustomFieldConfig = TypedCustomFieldConfig<
     entity: Type<VendureEntity>;
     entity: Type<VendureEntity>;
     graphQLType?: string;
     graphQLType?: string;
     eager?: boolean;
     eager?: boolean;
-    inverseSide?: string | ((object: VendureEntity) => any);
+    inverseSide?: string | ((object: any) => any);
 };
 };
 
 
 /**
 /**