use-state-validate
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -1,2 +0,2 @@ | ||
interface IStateWithValidation<T> { | ||
export interface IStateWithValidation<T> { | ||
value: T; | ||
@@ -7,3 +7,3 @@ isDirty: boolean; | ||
} | ||
export interface IUseStateValidate<T> extends Array<IStateWithValidation<T> | T | ((newValue: T) => void)> { | ||
interface IUseStateValidate<T> extends Array<IStateWithValidation<T> | T | ((newValue: T) => void)> { | ||
0: IStateWithValidation<T>; | ||
@@ -10,0 +10,0 @@ 1: (newValue: T) => void; |
{ | ||
"name": "use-state-validate", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Custom hook to account for state and validation off single state value", | ||
@@ -23,5 +23,6 @@ "license": "MIT", | ||
"use-state-validate", | ||
"validate", | ||
"validation", | ||
"use-state", | ||
"react", | ||
"use-state", | ||
"hooks" | ||
@@ -28,0 +29,0 @@ ], |
8582