Open d3vAdv3ntur3s opened 4 months ago
@d3vAdv3ntur3s thank you for this! I am using this library in one project of mine and I want to add the types. can I do it outside of the library?
@diegoroccia Yes that's what I've done here if I'm understanding what you mean.
The declare module just needs to match the name of the library that you are adding the types for.
Good luck ^_^
Nice job with the library, I was trialing the component, doesn't quite fit for my use case, but I thought it might be useful to have some Types to assist for Typescript users. Quickly put this together whilst I was trying out the component, hopefully helpful to you if not onlookers.
File:
react-quiz-component.d.ts