llgcode / js-def-issue

Description of an issue when generating typecript definition files from javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

js-def-issue

This repository highlights the issue happening when generating definition files from javascript.

The javascript that raise the issue near from ExtendedClass.js

Here the error returned by typescript:

ExtendedClass.js:1:1 - error TS9006: Declaration emit for this file requires using private name 'BaseClass' from module '"deps/BaseClass"'. An explicit type annotation may unblock declaration emit.

1 define("lib/ExtendedClass", ["deps/BaseClass"],
  ~~~~~~

It seems that BaseClass cannot be reexported.

The issue is reproducible with typescript 4.5.5 and 4.6.0-beta.

About

Description of an issue when generating typecript definition files from javascript


Languages

Language:JavaScript 100.0%