lambda-service-client
Version:
A simple, convenient way to invoke aws lambda functions with best practices.
10 lines (9 loc) • 351 B
TypeScript
export declare type LogMethod = (message: string, metadata: any) => void;
export declare const createLambdaServiceClient: ({ serviceName, stage, logDebug }: {
serviceName: string;
stage: string;
logDebug?: LogMethod | undefined;
}) => <O = any, I = any>({ functionName, event }: {
functionName: string;
event: I;
}) => Promise<O>;