Skip to content

import interfaces from library #854

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

Closed
Slonevskyi08 opened this issue Dec 13, 2022 · 6 comments
Closed

import interfaces from library #854

Slonevskyi08 opened this issue Dec 13, 2022 · 6 comments
Labels

Comments

@Slonevskyi08
Copy link

Hello! Thanks for developing the library!

I have a question about how I can import interfaces from a library. In my project, I use TS and want to create a component to which I can partially transfer props that I will use in the tooltip, which is a child of this component. So how I can import the interfaces from the library? Thank you!

@MylesWardell
Copy link

Bump on this. I also would like the prop interface similar to the v4 implementation 👍 . I think it should be as simple as exporting ITooltipWrapper from the react-tooltip.d.ts file

@danielbarion
Copy link
Member

Hi v5.1.2 released with src folder included.

We are still searching how to export the types from generated react-tooltip.d.ts, for now, you guys can import the types directly from source:

import { ITooltipController } from 'react-tooltip/src/components/TooltipController/TooltipControllerTypes'

Do not forget, exported Tooltip is the TooltipController:

export { TooltipController as Tooltip } from './components/TooltipController'

@danielbarion
Copy link
Member

Can you guys please let me know if this answer the question for now?
Thanks!

@danielbarion
Copy link
Member

Hi, v5.1.3 released with: #855

@Slonevskyi08
Copy link
Author

Yeah, thanks Daniel!

@danielbarion
Copy link
Member

thanks to @gabrieljablonski 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants