浏览代码

Avoid huge .d.ts files

Alex Dima 5 年之前
父节点
当前提交
11abbeebb2
共有 2 个文件被更改,包括 2 次插入2 次删除
  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++) {

文件差异内容过多而无法显示
+ 1 - 1
src/lib/lib.ts


部分文件因为文件数量过多而无法显示