React-hooks-testing-library: Missing RenderHookResult type

Created on 12 Jan 2021  路  2Comments  路  Source: testing-library/react-hooks-testing-library

  • react-hooks-testing-library version: 4.0.0

Relevant code or config:

import { RenderHookResult } from '@testing-library/react-hooks';

What you did:

I Updated a TypeScript project that was using 3.x & that used RenderHookResult to 4.0.0

What happened:

The type doesn't exists anymore

Reproduction:

Any code importing the type should fail to compile

Problem description:

Same problem as https://github.com/testing-library/react-hooks-testing-library/issues/534 but on the result type instead of the option parameter.

Suggested solution:

Add the interface back to the new typescript-rewritten version

bug released on @beta

Most helpful comment

This is released in v5.0.0

All 2 comments

this is fixed & released in v5.0.0-beta.9. However, you are welcome to submit a PR fixing the export issue.

This is released in v5.0.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Kiiiwiii picture Kiiiwiii  路  3Comments

FredyC picture FredyC  路  3Comments

SachinSharmaE picture SachinSharmaE  路  6Comments

alexkrolick picture alexkrolick  路  5Comments

SachinSaggezza picture SachinSaggezza  路  4Comments