Interface AddOptions

interface AddOptions {
    depth?: number;
    metadata?: Record<string, string | number | boolean>;
    onProgress?: ((evt) => void);
    signal?: AbortSignal;
}

Hierarchy

Properties

depth?: number

How deeply to pin the DAG, defaults to Infinity

metadata?: Record<string, string | number | boolean>

Optional user-defined metadata to store with the pin

onProgress?: ((evt) => void)

Type declaration

signal?: AbortSignal