interface ShardingStrategy {
    extension: string;
    decode(path): CID<unknown, number, number, Version>;
    encode(cid): {
        dir: string;
        file: string;
    };
}

Implemented by

Properties

Methods

Properties

extension: string

Methods

  • Parameters

    Returns {
        dir: string;
        file: string;
    }

    • dir: string
    • file: string