@jossmac/lil-libs
    Preparing search index...

    Type Alias RelativeOptions

    type RelativeOptions = {
        numeric?: Intl.RelativeTimeFormatNumeric;
        style?: Intl.RelativeTimeFormatStyle;
    }
    Index

    Properties

    Properties

    numeric?: Intl.RelativeTimeFormatNumeric

    Controls whether relative time is always numeric or may use idiomatic phrasing.

    With "auto", output may use forms such as "yesterday" or "now" instead of "1 day ago".

    style?: Intl.RelativeTimeFormatStyle

    The style of the formatted relative time.

    Possible values are:

    • "long" E.g., "1 minute ago"
    • "short" E.g., "1 min. ago"
    • "narrow" E.g., "1m ago"