sveltekit-i18n / lib

Internationalization library built for SvelteKit.
MIT License
447 stars 28 forks source link

Not exporting lib base types #181

Open moonlitgrace opened 1 month ago

moonlitgrace commented 1 month ago

Im trying to import Translations type. seems like its being exported from:

// /node_modules/sveltekit-i18n/node_modules/@sveltekit-i18n/base/dist/index.d.ts
export { Config, Loader, Logger, Parser, Translations, I18n as default };

Its only showing types from:

// /@sveltekit-i18n/parser-default/dist/index.d.ts
export { Config, Modifier, Parser, parser as default };

Workaround

I need to add library absolute path to get proper typing.

import type { Translations } from "../../node_modules/sveltekit-i18n/node_modules/@sveltekit-i18n/base";

But It would be better If can get types from base lib itself.