Turns the type from a list of Authorization rules like this:
Authorization
[ allow.public(), allow.ownerDefinedIn('otherfield'), allow.ownersDefinedIn('editors')] Copy
[ allow.public(), allow.ownerDefinedIn('otherfield'), allow.ownersDefinedIn('editors')]
Into an object type that includes all auth fields like this:
{ owner?: string | undefined; otherfield?: string | undefined; editors?: string[] | undefined;} Copy
{ owner?: string | undefined; otherfield?: string | undefined; editors?: string[] | undefined;}
Turns the type from a list of
Authorization
rules like this:Into an object type that includes all auth fields like this: