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 = {