@types/koa-static

  • Version 4.0.4
  • Published
  • 4.13 kB
  • 2 dependencies
  • MIT license

Install

npm i @types/koa-static
yarn add @types/koa-static
pnpm add @types/koa-static

Overview

TypeScript definitions for koa-static

Index

Functions

Interfaces

Functions

function serve

serve: (root: string, opts?: serve.Options) => Middleware<{}>;

    Interfaces

    interface Options

    interface Options extends SendOptions {}

      property defer

      defer?: boolean | undefined;
      • If true, serves after return next(), allowing any downstream middleware to respond first.

      Package Files (1)

      Dependencies (2)

      Dev Dependencies (0)

      No dev dependencies.

      Peer Dependencies (0)

      No peer dependencies.

      Badge

      To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

      You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/koa-static.

      • Markdown
        [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/koa-static)
      • HTML
        <a href="https://www.jsdocs.io/package/@types/koa-static"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>