Skip to content

Commit 1d98cb8

Browse files
fix: Import Long types
This adds an additional import to ensure the output of `pbts` includes the `long` package.
2 parents ca52447 + 8a85863 commit 1d98cb8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cli/pbts.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ exports.main = function(args, callback) {
151151
"// DO NOT EDIT! This is a generated file. Edit the JSDoc in src/*.js instead and run 'npm run types'.",
152152
""
153153
);
154+
output.push(
155+
"import * as Long from \"long\";",
156+
""
157+
);
154158
if (argv.global)
155159
output.push(
156160
"export as namespace " + argv.global + ";",

0 commit comments

Comments
 (0)