@cfxlabsinc/b2b-services
    Preparing search index...

    Interface ActivityFeedItem<Child>

    What the feed itself reads. A dashboard extends it with its own row, whose type union its renderers narrow on. A row that nests per-item rows passes itself as Child (type Row = ActivityFeedItem<Row> & { … }), so the renderers get its own type back for the children too.

    interface ActivityFeedItem<Child extends ActivityFeedItem<Child> = never> {
        actor: ActivityFeedActor;
        children?: readonly Child[];
        createdAt: string | Date;
        key: string;
        parent?: { href?: string; typeDescription: string };
        source?: ActivityFeedSource;
        typeDescription: string;
    }

    Type Parameters

    Index
    children?: readonly Child[]

    A bulk action's per-item rows, in display order; they share its actor, date and source.

    createdAt: string | Date
    key: string

    Unique within the feed.

    parent?: { href?: string; typeDescription: string }

    On a flat row that a bulk action wrote: the action it was part of.

    typeDescription: string

    The event, in words.