Skip to content

Commit 86b0c77

Browse files
committed
Some fixes regarding typing
1 parent 2851f78 commit 86b0c77

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "js-spec",
3-
"version": "0.1.70",
3+
"version": "0.1.71",
44
"license": "LGPL-3.0",
55
"homepage": "https://github.com/js-works/js-spec",
66
"main": "index.js",

src/main/api/SpecValidator.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import SpecError from './SpecError'
22

3-
export default interface SpecValidator {
4-
(it: any, path?: string | null): SpecError | null
5-
validate(it: any, path?: string | null): SpecError | null
3+
export default interface SpecValidator<T = any> {
4+
(it: T, path?: string | null): SpecError | null
5+
validate(it: T, path?: string | null): SpecError | null
66
usingHint(hint: string): SpecValidator
77
}

0 commit comments

Comments
 (0)