Installation
npm install --save @types/koa-json
Summary
This package contains type definitions for koa-json (https://github.com/koajs/json).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-json.
import * as Koa from "koa";
declare function json(opts?: {
/**
* default to pretty response [true]
*/
pretty?: boolean | undefined;
/**
* optional query-string param for pretty responses [none]
*/
param?: string | undefined;
/**
* JSON spaces [2]
*/
spaces?: number | undefined;
}): Koa.Middleware;
declare namespace json {}
export = json;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:38 GMT
- Dependencies: @types/koa
Credits
These definitions were written by Alex Friedman.