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 2851f78 commit 86b0c77Copy full SHA for 86b0c77
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "js-spec",
3
- "version": "0.1.70",
+ "version": "0.1.71",
4
"license": "LGPL-3.0",
5
"homepage": "https://github.com/js-works/js-spec",
6
"main": "index.js",
src/main/api/SpecValidator.ts
@@ -1,7 +1,7 @@
import SpecError from './SpecError'
-export default interface SpecValidator {
- (it: any, path?: string | null): SpecError | null
- validate(it: any, path?: string | null): SpecError | null
+export default interface SpecValidator<T = any> {
+ (it: T, path?: string | null): SpecError | null
+ validate(it: T, path?: string | null): SpecError | null
usingHint(hint: string): SpecValidator
7
}
0 commit comments