Skip to content

A future form building and validation library for TypeScript

Notifications You must be signed in to change notification settings

WhiteAbeLincoln/ts-formlet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ts-formlet

A future form building and validation library for TypeScript inspired by this PureScript article. Used in production for a financial calculator website.

See example usage in src/App.tsx. Code for the library is under src/formlet.

Future Changes

  • Change Form type to produce an Either<T, Error[]> instead of Option<T>, so that sub-errors can be gathered at the end of the form.
  • Have Form builder functions hold their default values as properties on the function object, so that we can avoid specifying a default manually. Should build up across combinators like formBuilder to produce an object default.
  • Generate a ui from the form automatically. Separate out the UI generation and the core form into separate libraries with stable interfaces for the UI types so people can use components different from Material-UI

About

A future form building and validation library for TypeScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published