Skip to content

io-ts typing invalid #173

@akomm

Description

@akomm

Describe the bug
Example, copied from README.MD does not work, triggering error on "resolver" property. I had to replace ref on username with {...register('username')} because the typing failed there too, but looks unrelated to resolver (I guess example with ref is outdated for this react-hook-form example).

To Reproduce
See sandbox

Codesandbox link (Required)
https://codesandbox.io/s/priceless-gareth-hs0zo?file=/src/App.tsx

Expected behavior
No type error

Desktop (please complete the following information):

  • OS: linux
  • Browser firefox
  • Version 89

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions