1.4.5 • Published 6 months ago
@types/aws-lambda-fastify v1.4.5
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
// Type definitions for aws-lambda-fastify 1.4
// Project: https://github.com/fastify/aws-lambda-fastify
// Definitions by: Kang Chan <https://github.com/kentakang>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
import { Context, Callback } from 'aws-lambda';
import { FastifyInstance, FastifyRequest, FastifyReply } 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
- Last updated: Wed, 07 Jul 2021 21:44:41 GMT
- Dependencies: @types/aws-lambda, @types/fastify, @types/node
- Global values: none
Credits
These definitions were written by Kang Chan.