class-validator-extended - v4.2.0
    Preparing search index...

    Function mapUnique

    • Type Parameters

      • Value

        The type of the map's values.

      • Projection

        The type returned by projection.

      Parameters

      • value: unknown

        The value to validate.

      • projection: (item: Value) => Projection

        The function mapping each value to the value that is used for the uniqueness check.

      Returns value is Map<unknown, unknown>