@upv/ushi-shared
Version:
Shared DTOs, types, and utilities for the USHI platform (LMS, Trials, Social, Wallet).
10 lines (9 loc) • 420 B
TypeScript
import type { APIGatewayProxyResultV2 } from "aws-lambda";
/**
* Returns a successful 2xx API Gateway response.
* @template T - Payload type
* @param body - The response payload (typed)
* @param statusCode - HTTP status code (defaults to 200)
* @returns APIGatewayProxyResultV2 with JSON-encoded payload
*/
export declare const success: <T extends object>(body: T, statusCode?: number) => APIGatewayProxyResultV2;