@h4ad/serverless-adapter
Version:
Run REST APIs and other web applications using your existing Node.js application framework (NestJS, Express, Koa, Hapi, Fastify and many others), on top of AWS, Azure, Digital Ocean and many other clouds.
26 lines (23 loc) • 1.26 kB
TypeScript
import { Context } from 'aws-lambda';
import { R as ResolverContract, b as ResolverProps, c as Resolver } from '../../adapter.contract-FnS-TPRj.js';
import '../../headers-DjfGHDmI.js';
import 'http';
import 'node:http';
import '../../logger-F8qccesk.js';
/**
* The class that implements the resolver by using the AWS Context object.
*
* @remarks To use this resolver, you MUST leave `{@link https://docs.aws.amazon.com/lambda/latest/dg/nodejs-context.html | callbackWaitsForEmptyEventLoop}` as true, otherwise, AWS will not wait for this resolver to resolve.
*
* @deprecated From the AWS Documentation, describing the functions used in this resolver: Functions for compatibility with earlier Node.js Runtime v0.10.42. No longer documented, so they are deprecated, but they still work as of the 12.x runtime, so they are not removed from the types.
*
* @breadcrumb Resolvers / AwsContextResolver
* @public
*/
declare class AwsContextResolver<TEvent, TCallback, TResponse> implements ResolverContract<TEvent, Context, TCallback, TResponse, void> {
/**
* {@inheritDoc}
*/
createResolver({ context, event, log, respondWithErrors, adapter, }: ResolverProps<any, Context, any, any>): Resolver<any, void>;
}
export { AwsContextResolver };