hey guys, love the ory project, we’re contemplatin...
# talk-keto
m
hey guys, love the ory project, we’re contemplating Keto for our platforms’s permission management solution, is there a way to install auto completion and linting for the OPL on vscode? Regular typescript won’t work obviously.
and use
import { Namespace, SubjectSet, Context } from '@ory/keto-namespace-types'
it is just typescript in the end 😉
m
nice, thank you, actually not frontend developer, so using ts for the first time, exactly what I was looking for 🙂
s
perfect, we'll get the cli done soon so you can do
keto init opl <namespace1> <namespace2> -o ./configs/keto/opl
and you will have a fully setup directory there
m
okay, I just tried this tsconfig, are you sure this is correct? It doesn’t appoear to be working, it doesn’t recognize the types or some of the standard functions like include.
you mean this one right:
Copy code
{
  "compilerOptions": {
    "noLib": true,
    "noEmit": true,
    "types": []
  }
}
s
yes, but you also have to do
npm i @ory/keto-namespace-types
m
yup, found it, thanks works now, lovely, thanks again!