Skip to content
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

hapiPlugin doesn't have its type defined in index.d.ts #69

Open
jmeleropager opened this issue Feb 26, 2024 · 2 comments
Open

hapiPlugin doesn't have its type defined in index.d.ts #69

jmeleropager opened this issue Feb 26, 2024 · 2 comments
Labels

Comments

@jmeleropager
Copy link

🐛 Bug Report

hapiPlugin is exported in index.js file but does not have its type exported in index.d.ts file, so it'll throw an error when using it in typescript.

To Reproduce

Create a typescript file, import the middleware and try to use hapiPlugin

import I18nextMiddleware from 'i18next-http-middleware';

const plugin = I18nextMiddleware.hapiPlugin; // <-- this is an error as there is no hapiPlugin property exported in types files.

Your Environment

  • runtime version: node v18.12.1
  • i18next version: 23.7.18
  • os: Mac
@adrai
Copy link
Member

adrai commented Feb 26, 2024

Feel free to provide a PR.

Copy link

stale bot commented Mar 17, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Mar 17, 2024
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

2 participants