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
- Host: GitHub
- URL: https://github.com/llgcode/js-def-issue
- Owner: llgcode
- Created: 2022-01-26T13:32:40.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-26T13:59:26.000Z (about 4 years ago)
- Last Synced: 2025-01-31T07:44:38.889Z (about 1 year ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.