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

Commit 084589c

Browse files
authored
fix: ignore the ts error caused by the recent protobufjs type change (#3656)
The json generated by protobufjs is now not compatible with the types on protobufjs's `fromJSON` method.
1 parent 28ad9ad commit 084589c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/ipfs-grpc-client/src/utils/load-services.js

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const CONVERSION_OPTS = {
1919
* service definition on both the server and the client.
2020
*/
2121
module.exports = function loadServices () {
22+
// @ts-ignore - recent protobufjs release changed the types
2223
const root = protobuf.Root.fromJSON(protocol)
2324
/** @type {Record<string, any>} */
2425
const output = {}

packages/ipfs-grpc-server/src/utils/load-services.js

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const CONVERSION_OPTS = {
1414
}
1515

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

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

0 commit comments

Comments
 (0)