platform-bible-utils
    Preparing search index...

    Type Alias UsjNodeAndDocumentLocation<TDocumentLocation>

    Node in a USJ object (including the top-level Usj object) and its location in the document. You must make sure you only add nodes that correspond to the appropriate type of UsjDocumentLocation (e.g. if documentLocation is a UsjTextContentLocation, node must be a text content string)

    You can specify a particular kind of UsjDocumentLocation in the generic type TDocumentLocation, and that will narrow documentLocation to that specific kind of location.

    type UsjNodeAndDocumentLocation<
        TDocumentLocation extends UsjDocumentLocation = UsjDocumentLocation,
    > = {
        documentLocation: TDocumentLocation;
        node: TDocumentLocation extends UsjTextContentLocation
            ? string
            : MarkerObject
            | Usj;
    }

    Type Parameters

    Index

    Properties

    documentLocation: TDocumentLocation
    node: TDocumentLocation extends UsjTextContentLocation
        ? string
        : MarkerObject
        | Usj