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
Make docs-searchbar compatible with typescript #479
Comments
I would like to work on this issue |
Thanks for your interest in this project 🔥 You are definitely more than welcome to open a PR for this! We prefer not assigning people to our issues because sometimes people ask to be assigned and never come back, which discourages the real volunteers contributors from opening a PR to fix this issue. We are looking forward to reviewing your PR 😊 |
@bidoubiwa I would like to know more about the issue, as in how can I reproduce it. From what I am getting, we can set allowJs to true in compilerOptions in tsconfig.json to run the Javascript files in typescript environment |
In some environments they need to have access to a type file. Something like An example of a repository that does this is axios which code-base is in JS but they provide a type file. |
For the moment when using docs-searchbar.js in an typescript environment, it raises an error because of a lack of declaration file. This can be prevented by providing a type file.
Better explanation on the issue here.
The text was updated successfully, but these errors were encountered: