Skip to content

Typescript support

Latest
Compare
Choose a tag to compare
@dtrelogan dtrelogan released this 23 Feb 19:38
· 2 commits to master since this release

Added Typescript support.

Changed to 'name' prop rather than 'modelKey' prop on FormField and adaptors. The modelKey prop will still work in plain Javascript but it won't compile in Typescript.

<FormField name='email' required>...</FormField>

When initializing a Form component, calculatePrimed is a required field. Old code should still work but it won't compile in Typescript.

const [formstate, form] = useFormstate(initialFormstate, { calculatePrimed: rff.primeOnChange });