Open deepak-illuminz opened 1 year ago
@deepak-illuminz try this:
import "@hapi/hapi";
import i18n from "hapi-i18n";
declare module "@hapi/hapi" { interface Request { i18n: i18n; } }
export {};
2. Add this file to your tsconfig.json:
... "include": ["environment.d.ts", "node_modules/@types"], ...
I tried using i18n module on hapi-typescript setup, the
Hapi.Request
type doesn't load thei18n
module, can someone suggest a workaround?