index.d.ts is blank
davidsk opened this issue · comments
I'm submitting a bug report
- Library Version:
1.3.1
Please tell us about your environment:
-
Operating System:
Windows 10 -
Node Version:
8.11.3
- NPM Version:
6.11.1
-
Browser:
n/a -
Language:
TypeScript 3.8.3 -
Loader/bundler:
RequireJS
Current behavior:
index.d.ts is blank but is used as a source for many imports in a cli project. This is generating a warning when using the au run
command
-
What is the expected behavior?
index.d.ts should contain the correct definitions -
What is the motivation / use case for changing the behavior?
It's incorrect and generates warnings
I did not see any warning, can you share your full terminal logs?
Also confirm, in v1.3.1 index.d.ts is blank in dist folder
We know is blank. Because the setup is converted to use typescript compiler but no code is converted from js to ts yet.
My question is where is the warning? Pls show some screenshots.
It shows up in the problems tab in the vscode console, I'll post a screenshot shortly.
I see, that is kind of expected, because there is no typing from the code.
Unless we
- convert part of the code base from js from ts.
- or get rid of the setup of TypeScript compiler, go to the old setup (without any compiler). Then add d.ts file manually.
Interestly, removing the index.d.ts file can silent the vscode. I will try to move lib/index.ts
back to lib/index.js
to prevent tsc to generate the empty d.ts file.
Removed empty index.d.ts file. Will be shipped in next version release.