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

Cannot use in TS, missing d.ts #38

Open
recallwei opened this issue Jun 23, 2023 · 1 comment
Open

Cannot use in TS, missing d.ts #38

recallwei opened this issue Jun 23, 2023 · 1 comment

Comments

@recallwei
Copy link

No description provided.

@leandroluk
Copy link

to solve we need only add a file in lib like this:

// <rootDir>/index.ts
export type Opts = {
    /** @default 'i18n'  */ translationsPath?: string,
    /** @default 'ulang' */ cookieLangName?: string,
    /** @default false   */ browserEnable?: boolean,
    /** @default 'en'    */ defaultLang?: string,
    /** @default 'clang' */ paramLangName?: string,
    /** @default ['en']  */ siteLangs?: string[],
    /** @default 'texts' */ textsVarName?: string,
}
export function i18n(opts: Opts): import('express').RequestHandler
export default i18n

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants