-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type Errors when copying the example #53
Comments
@MarceloPeresToi can you provide the version of typescript you're using? I haven't been able to repro the errors using the latest released version (4.9.4) |
Of course! My bad! |
Thanks! I tested again with 4.5.2 and still can't repro. What's odd is that the error for the CheckPermissionRequest line in the original report shows To rule out IDE setup, can you try running |
Just checked again and I'm using version 4.5.5. Running tsc got me the same errors. |
It's weird because I'm explicitly passing 'fullyConsistent' as value and for some reason it is treated as undefined...
|
I've tried with typescript 4.5.5 and am also using authzed-node v0.10.0 but still no repro. I'm not seeing anything obvious to try next. Perhaps try deleting your |
I've copied & pasted the example from the example folder but got some type errors from typescript from both the
WriteRelationshipsRequest
andcheckPermissionRequest
However, if I add "as any" to the parameters just to get it to compile, the functions work as expected, so it appears to be just something wrong with the type defs.
The text was updated successfully, but these errors were encountered: