Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vimtor opened this issue Sep 5, 2020 · 6 comments
Open

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

vimtor opened this issue Sep 5, 2020 · 6 comments
Labels
legacy Issues or pull requests relating to the legacy version of the forms library

Comments

@vimtor
Copy link

vimtor commented Sep 5, 2020

No description provided.

@goncedillo
Copy link

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

@toomski
Copy link

toomski commented Nov 18, 2020

Same here.

@colin-ggd
Copy link

Any update on this?

@azat-io
Copy link

azat-io commented Jan 5, 2021

+1

@employee451
Copy link

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

@Toliak
Copy link

Toliak commented Jan 27, 2021

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

@crutchcorn crutchcorn added the legacy Issues or pull requests relating to the legacy version of the forms library label Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legacy Issues or pull requests relating to the legacy version of the forms library
Projects
None yet
Development

No branches or pull requests

8 participants