PromiseResolver
@h4ad/serverless-adapter > PromiseResolver
(class) PromiseResolver
The class that implements the resolver using the promise object sent by this library
Signature:
export declare class PromiseResolver<TEvent, TContext, TCallback, TResponse, TReturn> implements ResolverContract<TEvent, TContext, TCallback, TResponse, Promise<any>>
Implements: ResolverContract <TEvent, TContext, TCallback, TResponse, Promise<any>>
(method) createResolver
Signature:
createResolver(\{ event, log, respondWithErrors, adapter, }: ResolverProps<TEvent, TContext, TCallback, TResponse>): Resolver<TResponse, Promise<TReturn>>;
Parameters
Parameter | Type | Description |
---|---|---|
{ event, log, respondWithErrors, adapter, } | ResolverProps <TEvent, TContext, TCallback, TResponse> |
Returns:
Resolver <TResponse, Promise<TReturn>>