A typed role token. Carries a role NSID for runtime dispatch plus a phantom
data type so consumers using type={SomeToken} and providers using
AppSurface.object(SomeToken, ...) share a single type-level contract.
Mint via make. The role field holds the bare NSID (e.g.
org.dxos.role.article) — the dispatch key, data-role attribute value,
and what .role comparisons inside matched components see.
A typed role token. Carries a role NSID for runtime dispatch plus a phantom data type so consumers using
type={SomeToken}and providers usingAppSurface.object(SomeToken, ...)share a single type-level contract.Mint via make. The
rolefield holds the bare NSID (e.g.org.dxos.role.article) — the dispatch key,data-roleattribute value, and what.rolecomparisons inside matched components see.