@dxos/app-framework - v0.10.0
    Preparing search index...

    Type Alias Role<TData>

    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.

    type Role<TData> = {
        _phantom?: TData;
        role: string;
    }

    Type Parameters

    • TData
    Index

    Properties

    Properties

    _phantom?: TData

    Covariant phantom; never accessed at runtime.

    role: string