dts-bundle icon indicating copy to clipboard operation
dts-bundle copied to clipboard

dts-bundle generates circular dependencies

Open Havunen opened this issue 7 years ago • 1 comments

Building types creates circular dependencies and references to itself. To reproduce the issue you can clone Inferno repository https://github.com/infernojs

npm install npm run build:typings

Now open generated typings file in https://github.com/infernojs/inferno/tree/master/packages/inferno/dist/

See that there are multiple typescript errors

This was originally reported to Inferno here: https://github.com/infernojs/inferno/issues/1377

Havunen avatar Aug 28 '18 20:08 Havunen

in this last version it returns multiple errors of TS2456 "Type alias '' circularly references itself." and TS2315 "Type '' is not generic." with the tsconfig.json as the starter-example, at inferno index.d.ts, with typescript 2.8.3 and 3.0.3. In version 5.4.0 it works correctly.

zzau13 avatar Aug 30 '18 13:08 zzau13