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.
index.d.ts
/// <reference types="node" />
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>,
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
) => void | Promise<TResult>;
declare function awsLambdaFastify(app: FastifyInstance, options?: AwsLambdaFastifyOptions): Handler;
export = awsLambdaFastify;
Additional Details
- Last updated: Wed, 22 Nov 2023 00:24:48 GMT
- Dependencies: @types/aws-lambda, @types/node, fastify
Credits
These definitions were written by Kang Chan.