From 9a3d7345fb68e69bec0c570df24d7e92a1559dde Mon Sep 17 00:00:00 2001 From: Robin Bellini Olsson Date: Fri, 15 Jun 2018 13:20:16 +0200 Subject: [PATCH] add withNamespace function --- types/microrouter/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/microrouter/index.d.ts b/types/microrouter/index.d.ts index 934affd630..81643c9c42 100644 --- a/types/microrouter/index.d.ts +++ b/types/microrouter/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for microrouter 2.2 +// Type definitions for microrouter 3.1.3 // Project: https://github.com/pedronauck/micro-router#readme // Definitions by: Mathieu Dutour // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -21,6 +21,7 @@ export type AugmentedRequestHandler = ( export type RouteHandler = (path: string, handler: AugmentedRequestHandler) => RequestHandler; export function router(...routes: RequestHandler[]): RequestHandler; +export function withNamespace(namespace: string): (...routes: RequestHandler[]) => RequestHandler; export const get: RouteHandler; export const post: RouteHandler;