Skip to content

Commit 7c27b5a

Browse files
authoredSep 9, 2022
fix: add import long to the generated .d.ts (#1802)
* fix: add import long to the generated .d.ts * fix: do not add import long to the main index.d.ts
1 parent 7120e93 commit 7c27b5a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎cli/pbts.js

+2
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ exports.main = function(args, callback) {
169169
Object.keys(imports).forEach(function(key) {
170170
output.push("import * as " + key + " from \"" + imports[key] + "\";");
171171
});
172+
173+
output.push("import Long = require(\"long\");");
172174
}
173175

174176
output = output.join("\n") + "\n" + out.join("");

0 commit comments

Comments
 (0)
Please sign in to comment.