From f50e2e9f6334bbad5279ce6661fb8cc0705c925c Mon Sep 17 00:00:00 2001 From: Rob McGuinness Date: Sat, 25 May 2019 09:44:10 -0400 Subject: [PATCH] test: add type to ts test --- index.d.ts | 5 +++++ index.test-d.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index f518be4a..65c68239 100644 --- a/index.d.ts +++ b/index.d.ts @@ -207,7 +207,12 @@ declare namespace hapiswagger { /** * A function used to determine which tags should be used for grouping (when `grouping` is set to `tags`) * + * @remarks + * @link https://swagger.io/specification/#tagObject + * + * * @param tag - String used to group API endpoint + * @returns True or false * * @example * ``` diff --git a/index.test-d.ts b/index.test-d.ts index ee184c4d..366129f5 100644 --- a/index.test-d.ts +++ b/index.test-d.ts @@ -19,7 +19,7 @@ import * as hapiswagger from '.'; email: 'who@where.com' } }, - tagsGroupFilter: tag => tag !== 'api' + tagsGroupFilter: (tag: string) => tag !== 'api' } });