@swarmion/serverless-contracts
Version:
Generate and use type-safe contracts between your Serverless services.
7 lines • 1.24 kB
TypeScript
import { Context } from 'aws-lambda';
import { GenericApiGatewayContract } from '../apiGatewayContract';
import { ApiGatewayEvent, BodyType, CustomRequestContextType, HandlerCallback, HandlerEventType, HeadersType, PathParametersType, QueryStringParametersType } from '../types';
import { ApiGatewayAuthorizerType, ApiGatewayIntegrationType } from '../types/constants';
export declare const setMockHandlerInputSeed: (inputSeed: string) => void;
export declare const getMockHandlerInput: <Contract extends GenericApiGatewayContract, IntegrationType extends ApiGatewayIntegrationType = Contract["integrationType"], AuthorizerType extends ApiGatewayAuthorizerType = Contract["authorizerType"], AdditionalArgs extends unknown[] = never[], CustomEvent = HandlerEventType<IntegrationType, AuthorizerType, PathParametersType<Contract>, QueryStringParametersType<Contract>, HeadersType<Contract>, CustomRequestContextType<Contract>, BodyType<Contract>>, Event = ApiGatewayEvent<IntegrationType, AuthorizerType>, Callback = HandlerCallback<IntegrationType>>(contract: Contract, partialEvent?: Partial<CustomEvent>, ...additionalArgs: AdditionalArgs) => [Event, Context, Callback, ...AdditionalArgs];
//# sourceMappingURL=mockHandlerInput.d.ts.map