Installation
npm install --save @types/aws-lambda-fastify
Summary
This package contains type definitions for aws-lambda-fastify (https://github.com/fastify/aws-lambda-fastify).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/aws-lambda-fastify.
import { Callback, Context } from "aws-lambda";
import { FastifyInstance, FastifyReply, FastifyRequest } from "fastify";
interface AwsLambdaFastifyOptions {
binaryMimeTypes?: string[] | undefined;
callbackWaitsForEmptyEventLoop?: boolean | undefined;
}
type Handler<TEvent = FastifyRequest, TResult = FastifyReply> = (
event: TEvent,
context: Context,
callback?: Callback<TResult>,
) => void | Promise<TResult>;
declare function awsLambdaFastify(app: FastifyInstance, options?: AwsLambdaFastifyOptions): Handler;
export = awsLambdaFastify;
Additional Details
Credits
These definitions were written by Kang Chan.