Selaa lähdekoodia

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

The previous typing was causing TS compiler errors
Michael Bromley 2 vuotta sitten
vanhempi
sitoutus
a9696c92ee
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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>;
     graphQLType?: string;
     eager?: boolean;
-    inverseSide?: string | ((object: VendureEntity) => any);
+    inverseSide?: string | ((object: any) => any);
 };
 
 /**