novx
    Preparing search index...

    Interface ValueFormatter<V, T>

    a ValueFormatter will format a value given specific formatting options.

    interface ValueFormatter<V, T> {
        format(locale: Locale, value: V, format: T): string;
    }

    Type Parameters

    • V
    • T

    Implemented by

    Index

    Methods

    Methods

    • format the specified value while applying the specified formatting options.

      Parameters

      • locale: Locale

        the current locale

      • value: V

        the value

      • format: T

        an formatting options

      Returns string