UNPKG

@chubbyts/chubbyts-api

Version:

[![CI](https://github.com/chubbyts/chubbyts-api/workflows/CI/badge.svg?branch=master)](https://github.com/chubbyts/chubbyts-api/actions?query=workflow%3ACI) [![Coverage Status](https://coveralls.io/repos/github/chubbyts/chubbyts-api/badge.svg?branch=maste

6 lines (5 loc) 430 B
import type { Data } from '@chubbyts/chubbyts-decode-encode/dist'; import type { Encoder } from '@chubbyts/chubbyts-decode-encode/dist/encoder'; import type { Response, ServerRequest } from '@chubbyts/chubbyts-http-types/dist/message'; export declare const valueToData: (value: unknown) => Data; export declare const stringifyResponseBody: (request: ServerRequest, response: Response, encoder?: Encoder, data?: Data) => Response;