From 7c27b5ad5d161c9f3711aa053ca704f8e1224e90 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Fri, 9 Sep 2022 14:38:22 -0700 Subject: [PATCH] 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 --- cli/pbts.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cli/pbts.js b/cli/pbts.js index e1e003760..ffaf0c6c6 100644 --- a/cli/pbts.js +++ b/cli/pbts.js @@ -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("");