Skip to content

Commit

Permalink
fix: add import long to the generated .d.ts (protobufjs#1802)
Browse files Browse the repository at this point in the history
* fix: add import long to the generated .d.ts

* fix: do not add import long to the main index.d.ts
  • Loading branch information
alexander-fenster authored Sep 9, 2022
1 parent 7120e93 commit 7c27b5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cli/pbts.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ exports.main = function(args, callback) {
Object.keys(imports).forEach(function(key) {
output.push("import * as " + key + " from \"" + imports[key] + "\";");
});

output.push("import Long = require(\"long\");");
}

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

0 comments on commit 7c27b5a

Please sign in to comment.