@swarmion/serverless-contracts
Version:
Generate and use type-safe contracts between your Serverless services.
11 lines • 499 B
TypeScript
import { SQSContract } from '../sqsContract';
import { FullContractSchemaType } from '../types/fullContract';
/**
* Returns the aggregated SQSContract schema in order to compare contracts versions.
*
* This also enables to infer the type with `json-schema-to-ts`.
*
* @param contract your EventBridgeContract
*/
export declare const getFullContractSchema: <Contract extends SQSContract>(contract: Contract) => FullContractSchemaType<Contract>;
//# sourceMappingURL=fullContractSchema.d.ts.map