UNPKG

alagarr

Version:

Alagarr is a request-response helper library that removes the boilerplate from your Node.js serverless functions and helps make your code portable.

3 lines (2 loc) 291 B
import { InterfaceResponseData, InterfaceResponseOptions } from '../types'; export default function makeResponseObject(responseData?: InterfaceResponseData, body?: string, statusCode?: number, { headers, ...options }?: InterfaceResponseOptions, contentType?: string): InterfaceResponseData;