UNPKG

@marblejs/serverless

Version:
15 lines (14 loc) 670 B
import { AwsLambdaProxyOptions } from './+awsLambda/awsLambda.types'; import { BoundDependency, httpListener } from '@marblejs/core'; export declare enum ProxyType { AWS = "aws" } declare type ProxyOptions<Type extends ProxyType> = Type extends ProxyType.AWS ? Partial<AwsLambdaProxyOptions> : never; export interface LambdaOptions<Type extends ProxyType> { httpListener: ReturnType<typeof httpListener>; type: ProxyType; dependencies?: BoundDependency<any>[]; proxyOptions?: ProxyOptions<Type>; } export declare const createLambda: <Type extends ProxyType>({ httpListener, type, dependencies, proxyOptions }: LambdaOptions<Type>) => any; export {};