field-form
field-form copied to clipboard
support default error
validator 支持返回Promise.reject()
,目前必须Promise.reject(new Error('xxx'))
This pull request is being automatically deployed with ZEIT Now (learn more). To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://zeit.co/react-component/field-form/bzdp5ivps ✅ Preview: https://field-form-git-fork-yoyo837-default-message.react-component.now.sh
Codecov Report
Merging #88 into master will not change coverage. The diff coverage is
100%
.
@@ Coverage Diff @@
## master #88 +/- ##
=======================================
Coverage 99.87% 99.87%
=======================================
Files 13 13
Lines 806 806
Branches 172 173 +1
=======================================
Hits 805 805
Misses 1 1
Impacted Files | Coverage Δ | |
---|---|---|
src/utils/validateUtil.ts | 100% <100%> (ø) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update bc56d70...6aa97a9. Read the comment docs.
来个 test case?
Done