Avoid huge .d.ts files

This commit is contained in:
Alex Dima 2019-12-20 21:03:59 +01:00
parent cdf8b88e35
commit 11abbeebb2
No known key found for this signature in database
GPG key ID: 6E58D7B045760DA0
2 changed files with 18 additions and 18 deletions

View file

@ -170,7 +170,7 @@ function importLibs() {
for (let i = result.length - 1; i >= 0; i--) {
if (result[i].deps.length === 0) {
// emit this node
strResult += `\nexport const ${result[i].name} = ${result[i].output};\n`;
strResult += `\nexport const ${result[i].name}: string = ${result[i].output};\n`;
// mark dep as resolved
for (let j = 0; j < result.length; j++) {