Browse Source

Avoid huge .d.ts files

Alex Dima 5 năm trước cách đây
mục cha
commit
11abbeebb2
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  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++) {

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
src/lib/lib.ts


Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác