Edit: Ignore I found the fix
I am using Ory Keto with Node.js and TypeScript. I followed the official guide to create the permission model and installed the package @ory/keto-namespace-types.
After installing this package, the global type definitions for core JavaScript objects appear to be broken. Specifically, Array, Object, String, and Boolean are affected.
As a result:
The TypeScript compiler fails the build
Object.hasOwn(...), Array
string throws type errors in any TypeScript file
Environment details:
Node.js: v22.17.0
TypeScript: v5.7.3
Could someone please advise on the correct way to use @ory/keto-namespace-types without breaking global TypeScript types, or suggest the recommended workaround?