Skip to content

Commit

Permalink
fix(elasticsearch-plugin): Fix type to allow the promise on custom ma…
Browse files Browse the repository at this point in the history
…pping definition (#2562)
  • Loading branch information
giosueDelgado authored Dec 4, 2023
1 parent 0763432 commit 8e9ee07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/elasticsearch-plugin/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ type GraphQlPermittedReturnType = PrimitiveTypeVariations<GraphQlPrimitive>;
type CustomMappingDefinition<Args extends any[], T extends GraphQlPermittedReturnType, R> = {
graphQlType: T;
public?: boolean;
valueFn: (...args: Args) => R;
valueFn: (...args: Args) => Promise<R> | R;
};

type TypeVariationMap<GqlType extends GraphQlPrimitive, TsType> = {
Expand Down

0 comments on commit 8e9ee07

Please sign in to comment.