@hookstate/validation
Advanced tools
Comparing version 4.0.0-rc3 to 4.0.0
@@ -9,3 +9,3 @@ import { Path, InferStateValueType, ExtensionFactory } from '@hookstate/core'; | ||
export interface Validation { | ||
validate(rule: (value: InferStateValueType<this>) => boolean, message: string | ((value: InferStateValueType<this>) => string), severity?: ValidationSeverity): void; | ||
validate<S extends InferStateValueType<this>>(rule: (value: S) => boolean, message: string | ((value: S) => string), severity?: ValidationSeverity): void; | ||
valid(options?: { | ||
@@ -12,0 +12,0 @@ depth?: number; |
{ | ||
"name": "@hookstate/validation", | ||
"version": "4.0.0-rc3", | ||
"version": "4.0.0", | ||
"description": "Plugin for @hookstate/core to enable validation of data state.", | ||
@@ -32,3 +32,3 @@ "license": "MIT", | ||
"peerDependencies": { | ||
"@hookstate/core": "^4.0.0-rc18" | ||
"@hookstate/core": "^4.0.0" | ||
}, | ||
@@ -70,2 +70,2 @@ "devDependencies": { | ||
] | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
45218