From 8a858634f3add3a2d8567f72699b907e9f543eca Mon Sep 17 00:00:00 2001 From: Florian Keller Date: Thu, 14 Feb 2019 17:42:08 +0100 Subject: [PATCH] fix: Import Long types --- cli/pbts.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cli/pbts.js b/cli/pbts.js index f066964d0..cbe23cb8f 100644 --- a/cli/pbts.js +++ b/cli/pbts.js @@ -151,6 +151,10 @@ exports.main = function(args, callback) { "// DO NOT EDIT! This is a generated file. Edit the JSDoc in src/*.js instead and run 'npm run types'.", "" ); + output.push( + "import * as Long from \"long\";", + "" + ); if (argv.global) output.push( "export as namespace " + argv.global + ";",