Keto friends! I know this may be sorta unconventio...
# talk-keto
c
Keto friends! I know this may be sorta unconventional, but I am trying to use the keto grpc client for typescript (the pre-generated one), and it fails building with the error "Exports and export assignments are not permitted in module augmentations." - which kinda makes sense, but I don't think there is anything I can do to fix it, is there? This is the package imported from npm @ory/keto-grpc-client
This also happens when I try to compile the package by itself, ie:
Copy code
.../node_modules/@ory/keto-grpc-client$ tsc
ory/keto/relation_tuples/v1alpha2/index.d.ts:11:3 - error TS2666: Exports and export assignments are not permitted in module augmentations.

11   export {
     ~~~~~~


Found 1 error in ory/keto/relation_tuples/v1alpha2/index.d.ts:11
For now I worked around it by not importing the entire package, so no more
Copy code
import ory from "@ory/keto-grpc-client"
but rather
Copy code
import * as relationTuples from '@ory/keto-grpc-client/ory/keto/relation_tuples/v1alpha2/relation_tuples_pb';
import * as checkService from '@ory/keto-grpc-client/ory/keto/relation_tuples/v1alpha2/check_service_grpc_pb';
import * as check from '@ory/keto-grpc-client/ory/keto/relation_tuples/v1alpha2/check_service_pb';
I think it's a bit of a hassle, but a mans gotta compile, you know?