Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save adon-at-work/945a54176fe8a0bc473fa6befb070a90 to your computer and use it in GitHub Desktop.
Save adon-at-work/945a54176fe8a0bc473fa6befb070a90 to your computer and use it in GitHub Desktop.
Patch end-to-end/lib/protobufjs/externs/protobuf.js
From: adon <[email protected]>
Date: Thu, 16 Jun 2016 14:13:18 +0800
Subject: [PATCH] patch
---
./protobuf.js | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/protobuf.js b/protobuf.js
index b161ad1..7844c4b 100644
--- a/protobuf.js
+++ b/protobuf.js
@@ -866,19 +866,17 @@ ProtoBuf.protoFromString = function(proto, builder, filename) {};
/**
* @param {string|{root: string, file: string}} filename
- * @param {(function(ProtoBuf.Builder)|ProtoBuf.Builder)=} callback
+ * @param {function(?Error, !ProtoBuf.Builder=)=} callback
* @param {ProtoBuf.Builder=} builder
* @return {ProtoBuf.Builder|undefined}
- * @throws {Error}
*/
ProtoBuf.loadProtoFile = function(filename, callback, builder) {};
/**
* @param {string|{root: string, file: string}} filename
- * @param {(function(ProtoBuf.Builder)|ProtoBuf.Builder)=} callback
+ * @param {function(?Error, !ProtoBuf.Builder=)=} callback
* @param {ProtoBuf.Builder=} builder
* @return {ProtoBuf.Builder|undefined}
- * @throws {Error}
*/
ProtoBuf.protoFromFile = function(filename, callback, builder) {};
@@ -893,10 +891,9 @@ ProtoBuf.loadJson = function(json, builder, filename) {};
/**
* @param {string|{root: string, file: string}} filename
- * @param {(function(ProtoBuf.Builder)|ProtoBuf.Builder)=} callback
+ * @param {function(?Error, !ProtoBuf.Builder=)=} callback
* @param {ProtoBuf.Builder=} builder
* @return {ProtoBuf.Builder|undefined}
- * @throws {Error}
*/
ProtoBuf.loadJsonFile = function(filename, callback, builder) {};
--
2.7.4 (Apple Git-66)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment