Interface WrappedParentData<ParData>

What gets returned by Stratify#parentIds() when Stratify#parentData is set.

interface WrappedParentData<ParData extends ParentData> {
    wrapped: ParData;
    (
        datum: ParData extends ParentData<N, unknown> ? N : never,
        index: number,
    ): undefined | Iterable<string, any, any>;
}

Type Parameters

Hierarchy (View Summary)

  • get parent ids from a node datum

    Parameters

    • datum: ParData extends ParentData<N, unknown> ? N : never

      the node data to get parent ids from

    • index: number

      the order that the datum was encountered in

    Returns undefined | Iterable<string, any, any>

    parentIds - the parent ids that correspond to the node datum, undefined is the same as empty

Properties

Properties

wrapped: ParData

the wrapped parent data operator