form icon indicating copy to clipboard operation
form copied to clipboard

Typescript module @types/react-form does not include hooks

Open vimtor opened this issue 5 years ago • 6 comments

vimtor avatar Sep 05 '20 18:09 vimtor

Same problem here. I didn't see anything related to TS in documentation.

goncedillo avatar Sep 21 '20 10:09 goncedillo

Same here.

toomski avatar Nov 18 '20 09:11 toomski

Any update on this?

colin-ggd avatar Dec 08 '20 22:12 colin-ggd

+1

azat-io avatar Jan 05 '21 20:01 azat-io

While waiting for this to be fix, I've removed the @types/react-form package and made a declarations.d.ts file with these contents:

declare module 'react-form' {
    var reactForm: {
	    Form: any
	    splitFormProps: any
	    useField: any
	    useForm: any
    }
    export = reactForm
}

In no way is this ideal, but it works

employee451 avatar Jan 09 '21 14:01 employee451

Hello! I have created a Pull Request to the DefinitelyTyped repository. Please, review it.

UPD: Pull Request has been merged, I believe this issue can be closed

Toliak avatar Jan 27 '21 11:01 Toliak