Skip to content

Commit

Permalink
fix: make expanded option in ts definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob McGuinness committed May 25, 2019
1 parent 4b3d968 commit 5bb666b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ declare namespace hapiswagger {
*
* @default 'list'
*/
expanded: ExpandedType;
expanded?: ExpandedType;

/**
* Sort method for `tags` i.e. groups in UI.
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"start:extend": "node examples/extend.js",
"start:group:ordered": "node examples/group-ordered.js",
"start:routes:simple": "node examples/group-ordered.js",
"test": "lab -L -t 99 -I 'Reflect,core,_babelPolyfill,regeneratorRuntime,__core-js_shared__,CSS'",
"test": "npm run test:lib && npm run test:ts",
"test:lib": "lab -L -t 99 -I 'Reflect,core,_babelPolyfill,regeneratorRuntime,__core-js_shared__,CSS'",
"test:ts": "tsd",
"lint": "eslint .",
"test:cov:html": "lab -r html -o coverage.html",
Expand Down Expand Up @@ -91,6 +92,7 @@
"lint-staged": {
"*.{js}": [
"eslint --fix",
"npm test",
"prettier --write",
"git add"
],
Expand Down

0 comments on commit 5bb666b

Please sign in to comment.