From 06fd47385443744c4752d5a51c16665883ddb387 Mon Sep 17 00:00:00 2001 From: Jack Wilsdon Date: Sat, 4 Nov 2017 23:18:26 +0000 Subject: [PATCH] Add missing strict option to IRouterOptions --- types/koa-router/index.d.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/types/koa-router/index.d.ts b/types/koa-router/index.d.ts index 972c02014c..7c0cffe113 100644 --- a/types/koa-router/index.d.ts +++ b/types/koa-router/index.d.ts @@ -33,15 +33,25 @@ declare module Router { export interface IRouterOptions { /** - * Router prefixes + * Prefix for all routes. */ prefix?: string; /** - * HTTP verbs + * Methods which should be supported by the router. */ methods?: string[]; routerPath?: string; + /** + * Whether or not routing should be case-sensitive. + */ sensitive?: boolean; + /** + * Whether or not routes should matched strictly. + * + * If strict matching is enabled, the trailing slash is taken into + * account when matching routes. + */ + strict?: boolean; } export interface IRouterContext extends Koa.Context {