i18next / i18next-http-middleware

i18next-http-middleware is a middleware to be used with Node.js web frameworks like express or Fastify and also for Deno.
MIT License
152 stars 28 forks source link

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

Open jmeleropager opened 8 months ago

jmeleropager commented 8 months ago

🐛 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

adrai commented 8 months ago

Feel free to provide a PR.

stale[bot] commented 7 months ago

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.