1.4.5 • Published 6 months ago

@types/aws-lambda-fastify v1.4.5

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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

Credits

These definitions were written by Kang Chan.

1.4.5

6 months ago

1.4.4

6 months ago

1.4.3

7 months ago

1.4.2

8 months ago

1.4.1

3 years ago

1.4.0

3 years ago