API reference / @backpack/aws-lambda / rest / result
Function: result()
ts
function result(result): APIGatewayProxyResult;
A helper function for an APIGatewayProxyResult
, adding additional type-safety and type completion.
Parameters
Parameter | Type |
---|---|
result | APIGatewayProxyResult | APIGatewayProxyResultWithCompletion |
Returns
APIGatewayProxyResult