I was reading the docs and noticed some syntax was out of date so I made a few changes that do the following:
replaces type wrappers using () with <> option('type) -> option<'type>
changes form ppx extension syntax with from being wrapped in [] to wrapping with (): [%form ...]; -> %form(...)
removes [] from wrapping attributes: [@react.component] -> @react.component
and with args i.e. an input type: [field]: @field.async(mode: OnBlur) string,
adds the rec keyword where missing to type examples that are followed by and type = ...
Hi there 👋
I was reading the docs and noticed some syntax was out of date so I made a few changes that do the following:
option('type) -> option<'type>
[%form ...]; -> %form(...)
[@react.component] -> @react.component
and with args i.e. an input type:[field]: @field.async(mode: OnBlur) string,
rec
keyword where missing to type examples that are followed byand type = ...
I took into account https://github.com/shakacode/re-formality/pull/119 and did not make the same changes they already did