javascript-time-ago 2.5.6 → 2.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -131,7 +131,7 @@ export default class TimeAgo {
|
|
|
131
131
|
// `.formatAndGetTimeToNextUpdate()`. But at this stage that would require a "major" version number update,
|
|
132
132
|
// and I wouldn't prefer doing that for such an insignificant change.
|
|
133
133
|
format(date: DateInput, style?: FormatStyleName | Style, options?: FormatOptions): FormatOptions['getTimeToNextUpdate'] extends true ? [string, number?] : string;
|
|
134
|
-
format(date: DateInput, options:
|
|
134
|
+
format<Options extends FormatOptions>(date: DateInput, options: Options): Options['getTimeToNextUpdate'] extends true ? [string, number?] : string;
|
|
135
135
|
getLabels(labelsType: LabelStyleName | LabelStyleName[]): Labels;
|
|
136
136
|
static addLocale(localeData: LocaleData): void;
|
|
137
137
|
static addDefaultLocale(localeData: LocaleData): void;
|