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.
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.
🐛 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
Your Environment