yup-test-debounced
v1.0.6
Published
Run yup test function debounced
Readme
Yup Test Debounced
Run Yup test function debounced
Install
Using npm:
$ npm install yup-test-debouncedUsing yarn:
$ yarn add yup-test-debouncedUsage
TS
import * as yup from 'yup'
import yupTestDebounced from 'yup-test-debounced'
yupTestDebounced(yup)JS
const yup = require('yup')
require('yup-test-debounced')(yup)Schema
const schema = yup.object().shape({
field: yup.string().testDebounced(
'testDebounced',
'Field validated after 500ms debounce',
(value) => value !== null,
500
),
})License
This project is open-sourced software licensed under the MIT license.
