Hey! using authzed faced few typing issues when tr...
# spicedb
u
Hey! using authzed faced few typing issues when trying to customize some grpc callOptions per operation. eg:
Copy code
const 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:
Copy code
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
Copy code
const response = await this.client.checkBulkPermissions(
      checkBulkPermissionsRequest,
      { deadline: Date.now() + config.SPICEDB_GRPC_TIMEOUT_MS }
    );
will work fine, but will TS type fail 🤔