0xb4lamx [EU]
01/17/2025, 2:13 PMconst response = await this.client.checkBulkPermissions(
checkBulkPermissionsRequest,
undefined,
{ deadline: Date.now() + config.SPICEDB_GRPC_TIMEOUT_MS }
);
will build fine, but on runtime, gRPC calls will fail with:
Trace: Error: Incorrect arguments passed
at Proxy.checkOptionalUnaryResponseArguments (/xxxxxxx/api/node_modules/.pnpm/@grpc+grpc-js@1.12.5/node_modules/@grpc/grpc-js/src/client.ts:229:15)
at Proxy.makeUnaryRequest (/xxxxxxx/api/node_modules/.pnpm/@grpc+grpc-js@1.12.5/node_modules/@grpc/grpc-js/src/client.ts:277:12)
at Proxy.checkBulkPermissions
==
this
const response = await this.client.checkBulkPermissions(
checkBulkPermissionsRequest,
{ deadline: Date.now() + config.SPICEDB_GRPC_TIMEOUT_MS }
);
will work fine, but will TS type fail 🤔