From f4d29c8a399c51334e8f136d5cc33ba44f14a89a Mon Sep 17 00:00:00 2001 From: Petter Kjelkenes Date: Wed, 23 Aug 2023 12:57:23 +0200 Subject: [PATCH] fix: types of fieldMapper option to allow any properties --- src/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 389f4b1..8373fce 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,5 @@ import { ArrayOfObjectsInputProps, - AssetFromSource, AssetSource, definePlugin, isArrayOfObjectsSchemaType, @@ -34,7 +33,7 @@ export interface ImageShopPluginConfig { // custom hooks languageResolver?: () => string - fieldMapper?: (asset: AssetFromSource) => AssetFromSource + fieldMapper?: (asset: any, documentProps: any) => any } /** * @public