Skip to content

Commit

Permalink
index.d.ts: add void return type to setLocals (#25)
Browse files Browse the repository at this point in the history
* index.d.ts: add void to setLocals

* version 0.8.3
  • Loading branch information
city41 authored and nettofarah committed Jun 15, 2018
1 parent 3b6b86a commit 3f1077c
Show file tree
Hide file tree
Showing 2 changed files with 2 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 @@ -42,7 +42,7 @@ declare module 'property-validator' {
}

//function to change the locals, keeps a fallback to en locals
export function setLocals(locals: {})
export function setLocals(locals: {}): void

//request validators
export function validate(
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "property-validator",
"version": "0.8.2",
"version": "0.8.3",
"description": "Easy property validation for JavaScript, Node and Express.",
"main": "index.js",
"types": "./index.d.ts",
Expand Down

0 comments on commit 3f1077c

Please sign in to comment.