UNPKG

presta

Version:

Hyper minimal framework for the modern web.

14 lines (13 loc) 560 B
/** * This is production code, so be careful what you add to this file because we * want to keep it small. * * This file is used in compiled Presta functions to serialize output. */ import { Response as LambdaResponse } from 'lambda-types'; import { Response } from './core'; export declare function html(response: Partial<Response>): LambdaResponse; export declare function json(response: Omit<Partial<Response>, 'body'> & { body: Record<string, unknown>; }): LambdaResponse; export declare function xml(response: Partial<Response>): LambdaResponse;