Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Fix typings to allow import from TypeScript #11

Merged
merged 1 commit into from
Apr 6, 2021

Conversation

sylvaindesve
Copy link
Contributor

Changed typings so it is similar to https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/enzyme-adapter-react-16/index.d.ts to allow import from TypeScript.

Fixes #10

@wojtekmaj
Copy link
Owner

I need someone to test your fork and confirm it's working correctly. We're already past half a million downloads per month, so it's getting serious.

@wojtekmaj wojtekmaj added bug Something isn't working help wanted Extra attention is needed labels Mar 12, 2021
@ctamas
Copy link

ctamas commented Apr 6, 2021

I can confirm this change fixes the error appearing when trying to import this adapter in a TypeScript environment on a 300 test case TypeScript project.
I don't have a big project to test with on javascript.

@wojtekmaj
Copy link
Owner

Thanks @ctamas. Let's try it then!

@wojtekmaj wojtekmaj merged commit 5cce34e into wojtekmaj:master Apr 6, 2021
@ctamas
Copy link

ctamas commented Apr 9, 2021

Are there any plans to make a release with this?

@wojtekmaj
Copy link
Owner

wojtekmaj commented Apr 9, 2021

Ah sure, forgot about it, sorry. Released in v0.6.1.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adpater is undefined if imported from Typescript
3 participants