Przeglądaj źródła

Avoid huge .d.ts files

Alex Dima 5 lat temu
rodzic
commit
11abbeebb2
2 zmienionych plików z 2 dodań i 2 usunięć
  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++) {

Plik diff jest za duży
+ 1 - 1
src/lib/lib.ts


Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików