Comments (1)
Currently it's one of limitations of dts-bundle-generator
(it isn't able to handle import * as name
imports). I believe it should be fixed in #59.
For now I would suggest you use the following workaround:
import { InitOptions } from "i18next";
export class I18N {
constructor(config: InitOptions) {}
}
This code is handled by dts-bundle-generator
correctly and works the same as yours one.
Also, it seems that it isn't related to esModuleInterop
option.
from dts-bundle-generator.
Related Issues (20)
- jsdoc typedef {import('').Mod} Mod overwrite the real Mod type HOT 2
- custom type.d.ts: files that are using custom declaration types are not generating d.ts files HOT 3
- Generate type dependencies for one type only
- Error: Cannot find symbol for node: replace while using react-router-dom HOT 2
- Imports are lost when importing esm-like moduleswithout default export using commonjs import or esm import default HOT 1
- wildcard module declaration is ignored HOT 2
- Fixing compilation issues while using declare module or similar "global" type declarations
- `--external-inlines` doesn't bundle completely HOT 1
- Code mode HOT 1
- Bundle generation fails with `Cannot find namespace 'Protocol'` (but `Protocol` doesn't seem to be a global declaration) HOT 5
- TypeScript 5 support HOT 1
- `import * as` & `export * as` does not work. HOT 1
- Incorrect `export` state of referenced but not directly exported namespaces/modules HOT 1
- Some types are removed if they used in ambient context HOT 1
- Vue support HOT 14
- Add option to not remove any comments HOT 7
- `declare module Module` statements from dependencies are inlined despite if it should be imported HOT 3
- (Re-)Export from re-export from external library doesn't add import/export statements HOT 1
- Using `as` in import type leads to a broken output HOT 1
- Seems like local global declerations not inlined while generating the bundle when `inlineDeclareGlobals` is turned on. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dts-bundle-generator.