UNPKG

@teamsight/flight

Version:

Lambda life cycles

9 lines (8 loc) 317 B
import { Context } from "aws-lambda"; export declare type ServiceIdentifier<T> = symbol; export interface IContainer { get<T>(serviceIdentifier: ServiceIdentifier<T>): T; } export declare class Lambdafy { static create(container: IContainer, symbol: symbol): (event: any, context: Context) => Promise<any>; }