From 46ec8209b21cf9ff09ae8674e2a5bbc49fd4991b Mon Sep 17 00:00:00 2001 From: kaka Date: Fri, 30 Dec 2016 17:31:56 +0800 Subject: [PATCH] Reference dependencies as imports in generated typescript definitions, see #596 --- cli/pbts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/pbts.js b/cli/pbts.js index 09856d599..2c7d52a13 100644 --- a/cli/pbts.js +++ b/cli/pbts.js @@ -98,7 +98,7 @@ exports.main = function(args, callback) { if (argv.name !== "protobufjs") output.push( "", - "import { Reader, Writer } from \"protobufjs\";", + "import { Reader, Writer, Method } from \"protobufjs\";", "" ); output = output.join('\n') + "\n" + out.join('');