Skip to content

Commit

Permalink
Some fixes regarding typing
Browse files Browse the repository at this point in the history
  • Loading branch information
mcjazzyfunky committed Sep 23, 2019
1 parent 2851f78 commit 86b0c77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "js-spec",
"version": "0.1.70",
"version": "0.1.71",
"license": "LGPL-3.0",
"homepage": "https://github.com/js-works/js-spec",
"main": "index.js",
Expand Down
6 changes: 3 additions & 3 deletions src/main/api/SpecValidator.ts
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 86b0c77

Please sign in to comment.