mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
javascript-time-ago type definitions (#40618)
* Adding tsconfig and tslint * Adding main interface type definitions * Adding tests * Updating tsconfig * Adding locale type definitions * Fix config * Fix linting * Updating tsconfig to use files property * Updating typescript version * Header fix * Trimming newlines for dtslint * Potential CI Fix * Removing strict flag from tsconfig * Shuffling types for less duplication * Adding newline for linting
This commit is contained in:
committed by
Andrew Casey
parent
7926ae9ff5
commit
1f7634ec0d
Vendored
+27
@@ -0,0 +1,27 @@
|
||||
// Type definitions for javascript-time-ago 2.0
|
||||
// Project: https://github.com/catamphetamine/javascript-time-ago
|
||||
// Definitions by: Erik Burton <https://github.com/erikburt>
|
||||
// Henry Nguyen <https://github.com/HenryNguyen5>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
import { Locale, TimeUnit, Duration, DefaultFormats, RTFFormatter, Formats, QuantifyType } from "./locale";
|
||||
|
||||
export = TimeAgo;
|
||||
|
||||
declare class TimeAgo {
|
||||
constructor(locales?: string | string[]);
|
||||
|
||||
format(input: Date | number, style?: string): string;
|
||||
formatNumber(number: number): string;
|
||||
formatValue(value: Date | number, unit: TimeUnit, localeData: Duration): string;
|
||||
getFormatter(flavor: DefaultFormats): RTFFormatter;
|
||||
getLocaleData(format?: Formats): Duration; // Defaults to "long"
|
||||
getRule(value: Date | number, unit: TimeUnit, localeData: Duration): string;
|
||||
|
||||
static addLocale(localeData: Locale): void;
|
||||
static locale(localeData: Locale): void;
|
||||
static getDefaultLocale(): string;
|
||||
static intlDateTimeFormatSupported(): boolean;
|
||||
static intlDateTimeFormatSupportedLocale(locale: string): string | void;
|
||||
static setDefaultLocale(locale: string): void;
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
import TimeAgo from "javascript-time-ago";
|
||||
import en from "javascript-time-ago/locale/en";
|
||||
import to from "javascript-time-ago/locale/to";
|
||||
import zhHansHK from "javascript-time-ago/locale/zh-Hant-HK";
|
||||
|
||||
// Statically add locales
|
||||
TimeAgo.locale(en);
|
||||
TimeAgo.addLocale(to);
|
||||
TimeAgo.addLocale(zhHansHK);
|
||||
|
||||
TimeAgo.intlDateTimeFormatSupportedLocale("en");
|
||||
|
||||
const ta = new TimeAgo();
|
||||
|
||||
// Format one minute ago using twitter style
|
||||
ta.format(new Date().getTime() - 60 * 1000, "twitter");
|
||||
|
||||
// Format random date using "twitter" style
|
||||
ta.format(111111, "twitter");
|
||||
|
||||
// Format a number using default style
|
||||
ta.formatNumber(1111111);
|
||||
|
||||
// Format value using in hour units using the long english formatting
|
||||
ta.formatValue(new Date(), "hour", en.long);
|
||||
|
||||
// Get formatters
|
||||
ta.getFormatter("long");
|
||||
ta.getLocaleData("long");
|
||||
|
||||
// Get rule used to format
|
||||
ta.getRule(new Date(), "hour", en.long);
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "af";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "am";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "ar-AE";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "ar";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "as";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "ast";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "az";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "be";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "bg";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "bn";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "br";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "bs-Cyrl";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "bs";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "ca";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "ccp";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "ce";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "chr";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "cs";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "cy";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "da";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "de";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
"long-time": Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "dsb";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "dz";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "ee";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "el";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
tiny: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "en";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
"long-convenient": Duration;
|
||||
"long-time": Duration;
|
||||
"short-convenient": Duration;
|
||||
"short-time": Duration;
|
||||
tiny: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
@@ -0,0 +1,14 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "es-AR";
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "es-MX";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
@@ -0,0 +1,14 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "es-PY";
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
@@ -0,0 +1,13 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "es-SV";
|
||||
long: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "es-US";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "es";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
tiny: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "et";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "eu";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "fa";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "fi";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "fil";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "fo";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "fr-CA";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "fr";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "fur";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "fy";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "ga";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "gd";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "gl";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "gu";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "he";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "hi";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "hr";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "hsb";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "hu";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "hy";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "ia";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "id";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
export interface Locale {
|
||||
locale: string;
|
||||
long?: Duration;
|
||||
short?: Duration;
|
||||
narrow?: Duration;
|
||||
tiny?: Duration;
|
||||
"short-time"?: Duration;
|
||||
"short-convenient"?: Duration;
|
||||
"long-time"?: Duration;
|
||||
"long-convenient"?: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export interface Duration {
|
||||
flavour?: Formats;
|
||||
year: Tense;
|
||||
quarter: Tense;
|
||||
month: Tense;
|
||||
week: Tense;
|
||||
day: Tense;
|
||||
hour: Tense;
|
||||
minute: Tense;
|
||||
second: Tense;
|
||||
}
|
||||
|
||||
export interface Tense {
|
||||
previous?: QuantifyType | string;
|
||||
current?: QuantifyType | string;
|
||||
next?: QuantifyType | string;
|
||||
past?: QuantifyType | string;
|
||||
future?: QuantifyType | string;
|
||||
}
|
||||
|
||||
export interface QuantifyType {
|
||||
one: string;
|
||||
two?: string;
|
||||
few?: string;
|
||||
other: string;
|
||||
}
|
||||
|
||||
export interface RTFFormatter {
|
||||
numeric: string;
|
||||
style: DefaultFormats;
|
||||
localeMatcher: string;
|
||||
locale: string;
|
||||
numberFormat: { [key: string]: any };
|
||||
}
|
||||
|
||||
export type TimeUnit = 'now' | 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year';
|
||||
export type DefaultFormats = "long" | "short" | "narrow";
|
||||
export type ExtendedFormats = "tiny" | "short-time" | "short-convenient" | "long-time" | "long-convenient";
|
||||
export type Formats = DefaultFormats | ExtendedFormats;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "is";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "it";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "ja";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "jgo";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "jv";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "ka";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "kea";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "kk";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "kl";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "km";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "kn";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "ko";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
tiny: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "kok";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "ksh";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "ku";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "ky";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "lb";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "lkt";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "lo";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "lt";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "lv";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "mk";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "ml";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "mn";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "mr";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "ms";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "mt";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "my";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "mzn";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "nb";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "ne";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "nl";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "nn";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "or";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "pa";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "pl";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "ps";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "pt";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "qu";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "ro";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "ru";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
"long-convenient": Duration;
|
||||
"long-time": Duration;
|
||||
"short-convenient": Duration;
|
||||
"short-time": Duration;
|
||||
tiny: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "sah";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Generated with https://github.com/erikburt/javascript-time-ago-type-gen
|
||||
|
||||
import { Duration, QuantifyType } from "..";
|
||||
|
||||
declare const locale: Locale;
|
||||
|
||||
interface Locale {
|
||||
locale: "sd";
|
||||
long: Duration;
|
||||
narrow: Duration;
|
||||
short: Duration;
|
||||
quantify: (n: number) => keyof QuantifyType;
|
||||
}
|
||||
|
||||
export = locale;
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user