No longer possible to set Style with auto updating text
Before 2.6.0, I did the following:
const [formattedDate, timeToNextUpdate] = timeAgo.format(date, style, {
getTimeToNextUpdate: true
});
With >2.6.0, it is no longer possible to use either refresh() or timeToNextUpdate together with style, as those are the only 3 options:
format(date: DateInput, style?: FormatStyleName | Style, options?: FormatOptions): string;
format(date: DateInput, options: FormatOptionsWithGetTimeToNextUpdate): [string, number?];
format(date: DateInput, options: FormatOptionsWithRefresh): [string, () => void];
I'd like to update to 2.6.0, but this prevents me from using it.