UNPKG

789 BTypeScriptView Raw
1import { Params, MultiValueParams, Event as LambdaEvent, Context as LambdaContext, Response as LambdaResponse } from 'lambda-types';
2export declare type Headers = Params;
3export declare type MultiValueHeaders = MultiValueParams;
4export declare type QueryStringParameters = Params;
5export declare type MultiValueQueryStringParameters = MultiValueParams;
6export declare type PathParameters = Params;
7export declare type Event = Omit<LambdaEvent, 'requestContext' | 'resource'>;
8export declare type Context = LambdaContext;
9export declare type Response = Omit<LambdaResponse, 'statusCode'> & {
10 statusCode?: number;
11 html?: string;
12 json?: object;
13 xml?: string;
14};
15export declare type Handler = (event: Event, context: Context) => Promise<Response | string> | Response | string;