Skip to content

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

ParameterType
resultAPIGatewayProxyResult | APIGatewayProxyResultWithCompletion

Returns

APIGatewayProxyResult