UNPKG

@swarmion/serverless-contracts

Version:

Generate and use type-safe contracts between your Serverless services.

11 lines 741 B
import { GenericApiGatewayContract } from '../apiGatewayContract'; import { FullContractSchemaType } from '../types'; /** * Returns the aggregated ApiGatewayContract schema in order to validate the inputs of lambdas. * * This also enables to infer the type with `json-schema-to-ts`. * * @param contract your ApiGatewayContract */ export declare const getFullContractSchema: <Contract extends GenericApiGatewayContract>(contract: Contract) => FullContractSchemaType<Contract["path"], Contract["method"], Contract["integrationType"], Contract["pathParametersSchema"], Contract["queryStringParametersSchema"], Contract["headersSchema"], Contract["bodySchema"], Contract["outputSchemas"]>; //# sourceMappingURL=fullContractSchema.d.ts.map