We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29f911d commit 32122aeCopy full SHA for 32122ae
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "js-spec",
3
- "version": "0.1.78",
+ "version": "0.1.79",
4
"license": "LGPL-3.0",
5
"homepage": "https://github.com/js-works/js-spec",
6
"main": "index.js",
@@ -15,6 +15,7 @@
15
"files": [
16
"index.js",
17
"validators",
18
+ "src",
19
"dist"
20
],
21
"devDependencies": {
src/main/api/validators.ts
@@ -923,7 +923,7 @@ export function isNotIn(collection: any): SpecValidator {
923
})
924
}
925
926
-export function lazy(getValidator: () => Validator) {
+export function lazy<T = any>(getValidator: () => Validator<T>): Validator<T> {
927
let validator: Function = null
928
929
return _specValidator((it, path) => {
0 commit comments