An open API service indexing awesome lists of open source software.

https://github.com/llgcode/js-def-issue

Description of an issue when generating typecript definition files from javascript
https://github.com/llgcode/js-def-issue

Last synced: 10 months ago
JSON representation

Description of an issue when generating typecript definition files from javascript

Awesome Lists containing this project

README

          

# 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](./ExtendedClass.js)

Here the error returned by typescript:

```log
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.