Skip to content

Commit 32122ae

Browse files
committed
Some updates
1 parent 29f911d commit 32122ae

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "js-spec",
3-
"version": "0.1.78",
3+
"version": "0.1.79",
44
"license": "LGPL-3.0",
55
"homepage": "https://github.com/js-works/js-spec",
66
"main": "index.js",
@@ -15,6 +15,7 @@
1515
"files": [
1616
"index.js",
1717
"validators",
18+
"src",
1819
"dist"
1920
],
2021
"devDependencies": {

src/main/api/validators.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ export function isNotIn(collection: any): SpecValidator {
923923
})
924924
}
925925

926-
export function lazy(getValidator: () => Validator) {
926+
export function lazy<T = any>(getValidator: () => Validator<T>): Validator<T> {
927927
let validator: Function = null
928928

929929
return _specValidator((it, path) => {

0 commit comments

Comments
 (0)