UNPKG
react-swift-form
Version:
latest (0.2.0)
0.2.0
0.1.1
0.1.0
React library fro form validation
github.com/tonai/react-swift-form
tonai/react-swift-form
react-swift-form
/
dist
/
src
/
helpers
/
error.d.ts
5 lines
(3 loc)
•
240 B
TypeScript
View Raw
1
2
3
4
5
import
{
IMainError
,
IValidatorError
}
from
'../types'
;
export
declare
function
isMainError<T>(
error
:
IMainError
| T): error is
IMainError
;
export
declare
function
isValidatorError<T>(
error
:
IValidatorError
| T): error is
IValidatorError
;