From 8e9ee070d0d3918f2029a0d37c08ed90c4785764 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Giosu=C3=A8=20Delgado?= <11545723+giosueDelgado@users.noreply.github.com> Date: Mon, 4 Dec 2023 10:22:40 +0100 Subject: [PATCH] fix(elasticsearch-plugin): Fix type to allow the promise on custom mapping definition (#2562) --- packages/elasticsearch-plugin/src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/elasticsearch-plugin/src/types.ts b/packages/elasticsearch-plugin/src/types.ts index 85a8c387e4..25d5571ee7 100644 --- a/packages/elasticsearch-plugin/src/types.ts +++ b/packages/elasticsearch-plugin/src/types.ts @@ -271,7 +271,7 @@ type GraphQlPermittedReturnType = PrimitiveTypeVariations; type CustomMappingDefinition = { graphQlType: T; public?: boolean; - valueFn: (...args: Args) => R; + valueFn: (...args: Args) => Promise | R; }; type TypeVariationMap = {