@types/koa-router
Advanced tools
@@ -9,2 +9,3 @@ // Type definitions for koa-router 7.4 | ||
| // Andrea Gueugnaut <https://github.com/falinor> | ||
| // Yves Kaufmann <https://github.com/yveskaufmann> | ||
| // Definitions: https://github.com/hellopao/DefinitelyTyped | ||
@@ -73,4 +74,4 @@ // TypeScript Version: 2.3 | ||
| export interface IParamMiddleware { | ||
| (param: string, ctx: RouterContext, next: () => Promise<any>): any; | ||
| export interface IParamMiddleware<STateT = any, CustomT = {}> { | ||
| (param: string, ctx: RouterContext<STateT, CustomT>, next: () => Promise<any>): any; | ||
| } | ||
@@ -530,3 +531,3 @@ | ||
| */ | ||
| param(param: string, middleware: Router.IParamMiddleware): Router<StateT, CustomT>; | ||
| param(param: string, middleware: Router.IParamMiddleware<StateT, CustomT>): Router<StateT, CustomT>; | ||
@@ -533,0 +534,0 @@ /** |
| MIT License | ||
| Copyright (c) Microsoft Corporation. All rights reserved. | ||
| Copyright (c) Microsoft Corporation. | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
| { | ||
| "name": "@types/koa-router", | ||
| "version": "7.4.0", | ||
| "version": "7.4.1", | ||
| "description": "TypeScript definitions for koa-router", | ||
@@ -36,2 +36,7 @@ "license": "MIT", | ||
| "githubUsername": "falinor" | ||
| }, | ||
| { | ||
| "name": "Yves Kaufmann", | ||
| "url": "https://github.com/yveskaufmann", | ||
| "githubUsername": "yveskaufmann" | ||
| } | ||
@@ -50,4 +55,4 @@ ], | ||
| }, | ||
| "typesPublisherContentHash": "75916f8c363ebc0589f92b1c9ed06c2672647f0cda2b9f6c2618b2585f8eff22", | ||
| "typeScriptVersion": "2.8" | ||
| "typesPublisherContentHash": "930258b5c1441b693860d0a6e749ac18d935ca0cbbabb93e2dedc05549d23b24", | ||
| "typeScriptVersion": "3.0" | ||
| } |
@@ -11,3 +11,3 @@ # Installation | ||
| ### Additional Details | ||
| * Last updated: Thu, 09 Jan 2020 16:03:44 GMT | ||
| * Last updated: Thu, 14 May 2020 17:53:38 GMT | ||
| * Dependencies: [@types/koa](https://npmjs.com/package/@types/koa) | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
| # Credits | ||
| These definitions were written by Jerry Chin (https://github.com/hellopao), Pavel Ivanov (https://github.com/schfkt), JounQin (https://github.com/JounQin), Romain Faust (https://github.com/romain-faust), Guillaume Mayer (https://github.com/Guillaume-Mayer), and Andrea Gueugnaut (https://github.com/falinor). | ||
| These definitions were written by [Jerry Chin](https://github.com/hellopao), [Pavel Ivanov](https://github.com/schfkt), [JounQin](https://github.com/JounQin), [Romain Faust](https://github.com/romain-faust), [Guillaume Mayer](https://github.com/Guillaume-Mayer), [Andrea Gueugnaut](https://github.com/falinor), and [Yves Kaufmann](https://github.com/yveskaufmann). |
20758
1.47%487
0.21%