Skip to content

Commit

Permalink
test: add type to ts test
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob McGuinness committed May 25, 2019
1 parent 5bb666b commit f50e2e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
* ```
Expand Down
2 changes: 1 addition & 1 deletion index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import * as hapiswagger from '.';
email: '[email protected]'
}
},
tagsGroupFilter: tag => tag !== 'api'
tagsGroupFilter: (tag: string) => tag !== 'api'
}
});

Expand Down

0 comments on commit f50e2e9

Please sign in to comment.