vazco / uniforms

A React library for building forms from any schema.
https://uniforms.tools
MIT License
1.94k stars 239 forks source link

Stricter types #1205

Closed radekmie closed 1 year ago

radekmie commented 1 year ago

In this pull request, I narrowed and improved quite a few of core uniforms types. Most notably:

(Side note: we should switch to Zod or some other schema for our internal tests, as Simple Schema is not really TypeScript friendly.)

codecov[bot] commented 1 year ago

Codecov Report

Merging #1205 (5a0a795) into master (8bb920f) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #1205   +/-   ##
=======================================
  Coverage   98.39%   98.39%           
=======================================
  Files         231      231           
  Lines        3795     3796    +1     
  Branches      994      994           
=======================================
+ Hits         3734     3735    +1     
  Misses          6        6           
  Partials       55       55           
Impacted Files Coverage Δ
packages/uniforms-antd/src/HiddenField.tsx 100.00% <ø> (ø)
packages/uniforms-material/src/HiddenField.tsx 100.00% <ø> (ø)
packages/uniforms-mui/src/HiddenField.tsx 100.00% <ø> (ø)
packages/uniforms-unstyled/src/HiddenField.tsx 100.00% <ø> (ø)
packages/uniforms/src/AutoForm.tsx 100.00% <ø> (ø)
packages/uniforms/src/Bridge.ts 100.00% <ø> (ø)
packages/uniforms/src/QuickForm.tsx 100.00% <ø> (ø)
packages/uniforms/src/ValidatedForm.tsx 100.00% <ø> (ø)
packages/uniforms/src/ValidatedQuickForm.ts 100.00% <ø> (ø)
packages/uniforms/src/changedKeys.ts 100.00% <ø> (ø)
... and 32 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.