gimmickless / iyiye-native-app

Native app for iyiye
MIT License
1 stars 0 forks source link

Formik's handleSubmit enable type check #5

Open vahdet opened 3 years ago

vahdet commented 3 years ago

Currently, handleSubmit is used as handleSubmit as any as otherwise it emits a type error.

The issue is mentioned here. Although it is marked as closed, it is not elegantly solved yet. Check the comments there and remove as any once it is fixed.

ya5huk commented 2 years ago

No fix yet :(

ya5huk commented 2 years ago

If anyone still tackles with it: @wsdt offered a walkaround (which walks around Typescript purpose as well) -> onPress={handleSubmit as any}