-
-
Notifications
You must be signed in to change notification settings - Fork 147
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
Types for Typescript users of react-quiz-component (.d.ts) #273
Comments
@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 ^_^ |
Couple typos: How big a lift do you think it would be to convert the whole project to typescript? Maybe worth doing that vs just typing. |
Also see https://www.danielfullstack.com/article/stop-using-d-ts-files-in-typescript - ideally we'd make the whole thing TypeScript and have it auto generate the |
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
The text was updated successfully, but these errors were encountered: