jaredpalmer / formik

Build forms in React, without the tears 😭
https://formik.org
Apache License 2.0
33.77k stars 2.78k forks source link

Add SetField* type shorthands #3755

Closed mathieucaroff closed 8 months ago

mathieucaroff commented 1 year ago

This MR addresses #3742

It adds type alias for the three functions of the FormikHelpers interface which do not depend on the type parameter and which accept at least two arguments. These alias are intended to ease user-side typing.

The modified file has been formatted by prettier.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
formik-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 31, 2023 7:21pm
changeset-bot[bot] commented 1 year ago

⚠️ No Changeset found

Latest commit: f4ab2f377ea567efb6725d8d7c56674f731aed4f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

quantizor commented 1 year ago

@mathieucaroff can you add a changeset for this?

codesandbox-ci[bot] commented 1 year ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit f4ab2f377ea567efb6725d8d7c56674f731aed4f:

Sandbox Source
Formik TypeScript Playground Configuration