@types/aws-lambda-fastify
TypeScript icon, indicating that this package has built-in type declarations

1.4.5 • Public • Published

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

Credits

These definitions were written by Kang Chan.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/aws-lambda-fastify

Weekly Downloads

5,941

Version

1.4.5

License

MIT

Unpacked Size

4.2 kB

Total Files

5

Last publish

Collaborators

  • types