NDNts

    Interface Insert<Options>

    DataStore interface, insert method.

    interface Insert<Options extends {} = {}> {
        insert: (
            ...args: [
                ...(object extends Options ? [] | [Options] : [])[],
                ...(Data | AnyIterable<Data>)[],
            ],
        ) => Promise<void>;
    }

    Type Parameters

    • Options extends {} = {}

    Hierarchy (View Summary, Expand)

    Implemented by

    Index

    Properties

    Properties

    insert: (
        ...args: [
            ...(object extends Options ? [] | [Options] : [])[],
            ...(Data | AnyIterable<Data>)[],
        ],
    ) => Promise<void>

    Insert one or more Data packets.

    Arguments include:

    • an optional Options object
    • zero or more Data, Iterable, or AsyncIterable
    MMNEPVFCICPMFPCPTTAAATR