Browse Source

Avoid huge .d.ts files

Alex Dima 5 years ago
parent
commit
11abbeebb2
2 changed files with 2 additions and 2 deletions
  1. 1 1
      scripts/importTypescript.js
  2. 1 1
      src/lib/lib.ts

+ 1 - 1
scripts/importTypescript.js

@@ -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++) {

File diff suppressed because it is too large
+ 1 - 1
src/lib/lib.ts


Some files were not shown because too many files changed in this diff