@types/koa-json
Advanced tools
@@ -10,3 +10,3 @@ // Type definitions for koa-json v2.x | ||
| import * as json from 'koa-json'; | ||
| const app = new Koa(); | ||
@@ -21,3 +21,3 @@ app.use(json()); | ||
| /** | ||
| /** | ||
| * default to pretty response [true] | ||
@@ -36,4 +36,4 @@ */ | ||
| spaces?: number | ||
| }): { (ctx: Koa.Context, next?: () => any): any }; | ||
| }): Koa.Middleware; | ||
| declare namespace json { } | ||
| export = json; |
| { | ||
| "name": "@types/koa-json", | ||
| "version": "2.0.15", | ||
| "description": "TypeScript definitions for koa-json v2.x", | ||
| "version": "2.0.16", | ||
| "description": "TypeScript definitions for koa-json", | ||
| "license": "MIT", | ||
@@ -16,4 +16,4 @@ "author": "Alex Friedman <https://github.com/brooklyndev/>", | ||
| }, | ||
| "typings": "index.d.ts", | ||
| "typesPublisherContentHash": "7426a6850d0e066f62339bd93c39b056b04c1d49fe20b6b2a9b48f53c1fdadb9" | ||
| "peerDependencies": {}, | ||
| "typesPublisherContentHash": "5261f6ff0de9b00d0e1f1bc0b7aff576728fd98cf3eb57e6f5b1515bb3326775" | ||
| } |
@@ -5,15 +5,14 @@ # Installation | ||
| # Summary | ||
| This package contains type definitions for koa-json v2.x (https://github.com/koajs/json). | ||
| This package contains type definitions for koa-json (https://github.com/koajs/json). | ||
| # Details | ||
| Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/koa-json | ||
| Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/koa-json | ||
| Additional Details | ||
| * Last updated: Mon, 19 Sep 2016 17:28:59 GMT | ||
| * File structure: ProperModule | ||
| * Last updated: Mon, 19 Dec 2016 22:35:59 GMT | ||
| * Library Dependencies: none | ||
| * Module Dependencies: koa | ||
| * Global values: json | ||
| * Global values: none | ||
| # Credits | ||
| These definitions were written by Alex Friedman <https://github.com/brooklyndev/>. |
| { | ||
| "authors": "Alex Friedman <https://github.com/brooklyndev/>", | ||
| "definitionFilename": "index.d.ts", | ||
| "libraryDependencies": [], | ||
@@ -8,13 +7,10 @@ "moduleDependencies": [ | ||
| ], | ||
| "libraryMajorVersion": "2", | ||
| "libraryMinorVersion": "0", | ||
| "libraryName": "koa-json v2.x", | ||
| "libraryMajorVersion": 2, | ||
| "libraryMinorVersion": 0, | ||
| "libraryName": "koa-json", | ||
| "typingsPackageName": "koa-json", | ||
| "projectName": "https://github.com/koajs/json", | ||
| "sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped", | ||
| "sourceBranch": "types-2.0", | ||
| "kind": "ProperModule", | ||
| "globals": [ | ||
| "json" | ||
| ], | ||
| "sourceBranch": "master", | ||
| "globals": [], | ||
| "declaredModules": [ | ||
@@ -27,3 +23,3 @@ "koa-json" | ||
| "hasPackageJson": false, | ||
| "contentHash": "7426a6850d0e066f62339bd93c39b056b04c1d49fe20b6b2a9b48f53c1fdadb9" | ||
| "contentHash": "5261f6ff0de9b00d0e1f1bc0b7aff576728fd98cf3eb57e6f5b1515bb3326775" | ||
| } |
2567
-5.42%49
-7.55%18
-5.26%