Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix: ignore the ts error caused by the recent protobufjs type change (#…
Browse files Browse the repository at this point in the history
…3656)

The json generated by protobufjs is now not compatible with the types on
protobufjs's `fromJSON` method.
  • Loading branch information
achingbrain authored Apr 29, 2021
1 parent 28ad9ad commit 084589c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/ipfs-grpc-client/src/utils/load-services.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const CONVERSION_OPTS = {
* service definition on both the server and the client.
*/
module.exports = function loadServices () {
// @ts-ignore - recent protobufjs release changed the types
const root = protobuf.Root.fromJSON(protocol)
/** @type {Record<string, any>} */
const output = {}
Expand Down
1 change: 1 addition & 0 deletions packages/ipfs-grpc-server/src/utils/load-services.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const CONVERSION_OPTS = {
}

module.exports = function loadServices () {
// @ts-ignore - recent protobufjs release changed the types
const root = protobuf.Root.fromJSON(protocol)

/** @type {Record<string, any>} */
Expand Down

0 comments on commit 084589c

Please sign in to comment.