Skip to content

Commit

Permalink
Partial revert of grpc#422
Browse files Browse the repository at this point in the history
  • Loading branch information
stanley-cheung committed Feb 21, 2019
1 parent b75825f commit 3477435
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 21 deletions.
15 changes: 7 additions & 8 deletions javascript/net/grpc/web/error.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,12 @@ goog.module.declareLegacyNamespace();



/** @record */
function Error() {}

/** @export {(number|undefined)} */
Error.prototype.code;

/** @export {(string|undefined)} */
Error.prototype.message;
/**
* @typedef {{
* code: (number|undefined),
* message: (string|undefined),
* }}
*/
let Error;

exports = Error;
21 changes: 8 additions & 13 deletions javascript/net/grpc/web/status.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,11 @@ goog.module.declareLegacyNamespace();



/** @record */
function Status() {}

/** @export {number} */
Status.prototype.code;

/** @export {string} */
Status.prototype.details;

/** @export {(!Object<string, string>|undefined)} */
Status.prototype.metadata;

exports.Status = Status;
/**
* @typedef {{
* code: number,
* details: string,
* metadata: (!Object<string, string>|undefined)
* }}
*/
exports.Status;

0 comments on commit 3477435

Please sign in to comment.