@response/types

Typings for usage with the other @response/* packages.

Usage no npm install needed!

<script type="module">
  import responseTypes from 'https://cdn.skypack.dev/@response/types';
</script>

README

Typings for @response

Typings for usage with the other @response/* packages.

Installation

npm install @response/types

Types

Response

A generic interface that all responses conform to.

Headers

The format of the headers objects.

ServerResponseLike

A subset of NodeJS.ServerResponse that the responses can write themselves to.