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.
Files changed (2) hide show
  1. package/index.d.ts +1 -1
  2. 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: FormatOptions): FormatOptions['getTimeToNextUpdate'] extends true ? [string, number?] : string;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "javascript-time-ago",
3
- "version": "2.5.6",
3
+ "version": "2.5.7",
4
4
  "description": "Localized relative date/time formatting",
5
5
  "main": "index.cjs",
6
6
  "module": "index.js",