Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/koa-router

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/koa-router - npm Package Compare versions

Comparing version 7.4.7 to 7.4.8

48

koa-router/index.d.ts

@@ -126,3 +126,3 @@ /* =================== USAGE ===================

methods: string[],
middleware: Array<Router.IMiddleware>,
middleware: Router.IMiddleware[],
opts?: ILayerOptions,

@@ -165,3 +165,3 @@ );

params: Object;
stack: Array<Router.Layer>;
stack: Router.Layer[];

@@ -195,3 +195,3 @@ /**

get(
path: string | RegExp | (string | RegExp)[],
path: string | RegExp | Array<string | RegExp>,
...middleware: Array<Router.IMiddleware<StateT, CustomT>>

@@ -206,3 +206,3 @@ ): Router<StateT, CustomT>;

get<T, U>(
path: string | RegExp | (string | RegExp)[],
path: string | RegExp | Array<string | RegExp>,
middleware: Koa.Middleware<T, U>,

@@ -221,3 +221,3 @@ routeHandler: Router.IMiddleware<StateT & T, CustomT & U>,

post(
path: string | RegExp | (string | RegExp)[],
path: string | RegExp | Array<string | RegExp>,
...middleware: Array<Router.IMiddleware<StateT, CustomT>>

@@ -232,3 +232,3 @@ ): Router<StateT, CustomT>;

post<T, U>(
path: string | RegExp | (string | RegExp)[],
path: string | RegExp | Array<string | RegExp>,
middleware: Koa.Middleware<T, U>,

@@ -247,3 +247,3 @@ routeHandler: Router.IMiddleware<StateT & T, CustomT & U>,

put(
path: string | RegExp | (string | RegExp)[],
path: string | RegExp | Array<string | RegExp>,
...middleware: Array<Router.IMiddleware<StateT, CustomT>>

@@ -258,3 +258,3 @@ ): Router<StateT, CustomT>;

put<T, U>(
path: string | RegExp | (string | RegExp)[],
path: string | RegExp | Array<string | RegExp>,
middleware: Koa.Middleware<T, U>,

@@ -273,3 +273,3 @@ routeHandler: Router.IMiddleware<StateT & T, CustomT & U>,

link(
path: string | RegExp | (string | RegExp)[],
path: string | RegExp | Array<string | RegExp>,
...middleware: Array<Router.IMiddleware<StateT, CustomT>>

@@ -284,3 +284,3 @@ ): Router<StateT, CustomT>;

link<T, U>(
path: string | RegExp | (string | RegExp)[],
path: string | RegExp | Array<string | RegExp>,
middleware: Koa.Middleware<T, U>,

@@ -299,3 +299,3 @@ routeHandler: Router.IMiddleware<StateT & T, CustomT & U>,

unlink(
path: string | RegExp | (string | RegExp)[],
path: string | RegExp | Array<string | RegExp>,
...middleware: Array<Router.IMiddleware<StateT, CustomT>>

@@ -310,3 +310,3 @@ ): Router<StateT, CustomT>;

unlink<T, U>(
path: string | RegExp | (string | RegExp)[],
path: string | RegExp | Array<string | RegExp>,
middleware: Koa.Middleware<T, U>,

@@ -325,3 +325,3 @@ routeHandler: Router.IMiddleware<StateT & T, CustomT & U>,

delete(
path: string | RegExp | (string | RegExp)[],
path: string | RegExp | Array<string | RegExp>,
...middleware: Array<Router.IMiddleware<StateT, CustomT>>

@@ -336,3 +336,3 @@ ): Router<StateT, CustomT>;

delete<T, U>(
path: string | RegExp | (string | RegExp)[],
path: string | RegExp | Array<string | RegExp>,
middleware: Koa.Middleware<T, U>,

@@ -351,3 +351,3 @@ routeHandler: Router.IMiddleware<StateT & T, CustomT & U>,

del(
path: string | RegExp | (string | RegExp)[],
path: string | RegExp | Array<string | RegExp>,
...middleware: Array<Router.IMiddleware<StateT, CustomT>>

@@ -362,3 +362,3 @@ ): Router<StateT, CustomT>;

del<T, U>(
path: string | RegExp | (string | RegExp)[],
path: string | RegExp | Array<string | RegExp>,
middleware: Koa.Middleware<T, U>,

@@ -377,3 +377,3 @@ routeHandler: Router.IMiddleware<StateT & T, CustomT & U>,

head(
path: string | RegExp | (string | RegExp)[],
path: string | RegExp | Array<string | RegExp>,
...middleware: Array<Router.IMiddleware<StateT, CustomT>>

@@ -388,3 +388,3 @@ ): Router<StateT, CustomT>;

head<T, U>(
path: string | RegExp | (string | RegExp)[],
path: string | RegExp | Array<string | RegExp>,
middleware: Koa.Middleware<T, U>,

@@ -403,3 +403,3 @@ routeHandler: Router.IMiddleware<StateT & T, CustomT & U>,

options(
path: string | RegExp | (string | RegExp)[],
path: string | RegExp | Array<string | RegExp>,
...middleware: Array<Router.IMiddleware<StateT, CustomT>>

@@ -414,3 +414,3 @@ ): Router<StateT, CustomT>;

options<T, U>(
path: string | RegExp | (string | RegExp)[],
path: string | RegExp | Array<string | RegExp>,
middleware: Koa.Middleware<T, U>,

@@ -429,3 +429,3 @@ routeHandler: Router.IMiddleware<StateT & T, CustomT & U>,

patch(
path: string | RegExp | (string | RegExp)[],
path: string | RegExp | Array<string | RegExp>,
...middleware: Array<Router.IMiddleware<StateT, CustomT>>

@@ -440,3 +440,3 @@ ): Router<StateT, CustomT>;

patch<T, U>(
path: string | RegExp | (string | RegExp)[],
path: string | RegExp | Array<string | RegExp>,
middleware: Koa.Middleware<T, U>,

@@ -455,3 +455,3 @@ routeHandler: Router.IMiddleware<StateT & T, CustomT & U>,

all(
path: string | RegExp | (string | RegExp)[],
path: string | RegExp | Array<string | RegExp>,
...middleware: Array<Router.IMiddleware<StateT, CustomT>>

@@ -466,3 +466,3 @@ ): Router<StateT, CustomT>;

all<T, U>(
path: string | RegExp | (string | RegExp)[],
path: string | RegExp | Array<string | RegExp>,
middleware: Koa.Middleware<T, U>,

@@ -469,0 +469,0 @@ routeHandler: Router.IMiddleware<StateT & T, CustomT & U>,

{
"name": "@types/koa-router",
"version": "7.4.7",
"version": "7.4.8",
"description": "TypeScript definitions for koa-router",

@@ -55,4 +55,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-router",

},
"typesPublisherContentHash": "2f8b75e2b4665f9a46bc0fa2960c7c8df5a640a8b23bad66f9072696c48136fc",
"typesPublisherContentHash": "8fb6a0375d3dfe4348d424dd56b9467224fe57c8dffdf2252add89bb166ac0c5",
"typeScriptVersion": "4.5"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Tue, 07 Nov 2023 09:09:38 GMT
* Last updated: Mon, 20 Nov 2023 23:36:24 GMT
* Dependencies: [@types/koa](https://npmjs.com/package/@types/koa)

@@ -14,0 +14,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc