Documentation
    Preparing search index...

    Interface MockHashtreeNode

    One node of the seeded Hashtree.

    const node = MOCK_HASHTREE_NODES.get(MOCK_HASHTREE_ROOT_HASH);
    node?.type === 'dir';
    interface MockHashtreeNode {
        bytes?: Uint8Array<ArrayBufferLike>;
        entries?: readonly { hash: string; name: string }[];
        hash: string;
        mime?: string;
        name: string;
        type: "file" | "dir";
    }
    Index

    Properties

    bytes?: Uint8Array<ArrayBufferLike>

    File bytes. Directories have none.

    entries?: readonly { hash: string; name: string }[]

    Directory children, in name order. Files have none.

    hash: string

    64-hex content hash (placeholder).

    mime?: string

    File MIME type.

    name: string

    Entry name within its parent (distros for the root).

    type: "file" | "dir"

    dir or file.