Documentation
    Preparing search index...

    Interface MockListItem

    ListItem plus the NIP-65 marker field from NAP-LISTS PR #68. @napplet/core 0.32.0 predates the marker; the NAP document is authoritative.

    const item: MockListItem = { itemType: 'relay', value: 'wss://relay-a.example.org', marker: 'read' };
    
    interface MockListItem {
        itemType: ListItemType;
        label?: string;
        marker?: "write" | "read" | "read-write";
        relay?: string;
        value: string;
        visibility?: ListItemVisibility;
    }

    Hierarchy

    • ListItem
      • MockListItem
    Index

    Properties

    itemType: ListItemType

    Semantic item type; the runtime maps this to the selected list's NIP-51 tag.

    label?: string

    Optional user-visible label.

    marker?: "write" | "read" | "read-write"

    NIP-65 relay read/write marker.

    relay?: string

    Optional relay hint.

    value: string

    Item value: pubkey, event id, address, relay URL, word, etc.

    visibility?: ListItemVisibility

    Whether the item should be public or private. Omitted means public for add.