Skip to content
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

[client] alternative usage pattern #6

Open
swantzter opened this issue May 24, 2023 · 0 comments
Open

[client] alternative usage pattern #6

swantzter opened this issue May 24, 2023 · 0 comments

Comments

@swantzter
Copy link
Owner

There was some comparison of abstractions in the Autzed discord, this client currently opts for TS tuples with [objectType, objectId], but another pattern that came up, which might be fairly realistic to implement on top of this client using the same codegen output types processed another way and a proxy or some object with wildcard getters. Examples of the result, freely extraplorated by me based on the first one as example

p.document('id1').view.check(p.user('abc'))

p.document('id1').edit.assert(p.user('abc'))

p.document.view.resources(p.user('def'), { info: 'this is the caveat context' })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant