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.
6 lines (5 loc) • 442 B
TypeScript
import ClientError from './errors/client-error';
import ServerError from './errors/server-error';
import { Alagarr, HandlerFunction, InterfaceAlagarrOptions, InterfaceRequest, InterfaceResponse } from './types';
export { Alagarr, HandlerFunction, InterfaceAlagarrOptions, InterfaceRequest, InterfaceResponse, ClientError, ServerError, };
export default function alagarr(handler?: HandlerFunction, options?: InterfaceAlagarrOptions): Alagarr;