zibri
    Preparing search index...

    Interface HashStrategyInterface<THashOptions>

    Interface for a hash strategy.

    interface HashStrategyInterface<THashOptions extends Record<string, unknown>> {
        equal: (value: string, hash: HashString) => boolean | Promise<boolean>;
        hash: (
            value: string,
            options: THashOptions | undefined,
        ) => HashString | Promise<HashString>;
        name: string;
        version: string;
    }

    Type Parameters

    • THashOptions extends Record<string, unknown>

    Implemented by

    Index

    Properties

    Properties

    equal: (value: string, hash: HashString) => boolean | Promise<boolean>

    Checks whether or not the given value equals the given hash.

    hash: (
        value: string,
        options: THashOptions | undefined,
    ) => HashString | Promise<HashString>

    Hashes the given value with the given options.

    name: string

    The name of the strategy.

    version: string

    The version of the strategy.