diff --git a/types/javascript-time-ago/index.d.ts b/types/javascript-time-ago/index.d.ts new file mode 100644 index 0000000000..0621d00899 --- /dev/null +++ b/types/javascript-time-ago/index.d.ts @@ -0,0 +1,27 @@ +// Type definitions for javascript-time-ago 2.0 +// Project: https://github.com/catamphetamine/javascript-time-ago +// Definitions by: Erik Burton +// Henry Nguyen +// 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; +} diff --git a/types/javascript-time-ago/javascript-time-ago-tests.ts b/types/javascript-time-ago/javascript-time-ago-tests.ts new file mode 100644 index 0000000000..4f96e5f4f4 --- /dev/null +++ b/types/javascript-time-ago/javascript-time-ago-tests.ts @@ -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); diff --git a/types/javascript-time-ago/locale/af/index.d.ts b/types/javascript-time-ago/locale/af/index.d.ts new file mode 100644 index 0000000000..fe8ce124a1 --- /dev/null +++ b/types/javascript-time-ago/locale/af/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/am/index.d.ts b/types/javascript-time-ago/locale/am/index.d.ts new file mode 100644 index 0000000000..730aca92b8 --- /dev/null +++ b/types/javascript-time-ago/locale/am/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/ar-AE/index.d.ts b/types/javascript-time-ago/locale/ar-AE/index.d.ts new file mode 100644 index 0000000000..b0a4911ec2 --- /dev/null +++ b/types/javascript-time-ago/locale/ar-AE/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/ar/index.d.ts b/types/javascript-time-ago/locale/ar/index.d.ts new file mode 100644 index 0000000000..9cc2877e40 --- /dev/null +++ b/types/javascript-time-ago/locale/ar/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/as/index.d.ts b/types/javascript-time-ago/locale/as/index.d.ts new file mode 100644 index 0000000000..552f4a1215 --- /dev/null +++ b/types/javascript-time-ago/locale/as/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/ast/index.d.ts b/types/javascript-time-ago/locale/ast/index.d.ts new file mode 100644 index 0000000000..27e8f66f96 --- /dev/null +++ b/types/javascript-time-ago/locale/ast/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/az/index.d.ts b/types/javascript-time-ago/locale/az/index.d.ts new file mode 100644 index 0000000000..17867c08c9 --- /dev/null +++ b/types/javascript-time-ago/locale/az/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/be/index.d.ts b/types/javascript-time-ago/locale/be/index.d.ts new file mode 100644 index 0000000000..4b5d6a9c5f --- /dev/null +++ b/types/javascript-time-ago/locale/be/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/bg/index.d.ts b/types/javascript-time-ago/locale/bg/index.d.ts new file mode 100644 index 0000000000..9f2b74aa77 --- /dev/null +++ b/types/javascript-time-ago/locale/bg/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/bn/index.d.ts b/types/javascript-time-ago/locale/bn/index.d.ts new file mode 100644 index 0000000000..b98eaecba1 --- /dev/null +++ b/types/javascript-time-ago/locale/bn/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/br/index.d.ts b/types/javascript-time-ago/locale/br/index.d.ts new file mode 100644 index 0000000000..4c0656445f --- /dev/null +++ b/types/javascript-time-ago/locale/br/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/bs-Cyrl/index.d.ts b/types/javascript-time-ago/locale/bs-Cyrl/index.d.ts new file mode 100644 index 0000000000..fc34697b0c --- /dev/null +++ b/types/javascript-time-ago/locale/bs-Cyrl/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/bs/index.d.ts b/types/javascript-time-ago/locale/bs/index.d.ts new file mode 100644 index 0000000000..bff90c00b7 --- /dev/null +++ b/types/javascript-time-ago/locale/bs/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/ca/index.d.ts b/types/javascript-time-ago/locale/ca/index.d.ts new file mode 100644 index 0000000000..c9bb8a5794 --- /dev/null +++ b/types/javascript-time-ago/locale/ca/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/ccp/index.d.ts b/types/javascript-time-ago/locale/ccp/index.d.ts new file mode 100644 index 0000000000..e2dde2a5e1 --- /dev/null +++ b/types/javascript-time-ago/locale/ccp/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/ce/index.d.ts b/types/javascript-time-ago/locale/ce/index.d.ts new file mode 100644 index 0000000000..ec6e8b22f5 --- /dev/null +++ b/types/javascript-time-ago/locale/ce/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/chr/index.d.ts b/types/javascript-time-ago/locale/chr/index.d.ts new file mode 100644 index 0000000000..70bdfa78ad --- /dev/null +++ b/types/javascript-time-ago/locale/chr/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/cs/index.d.ts b/types/javascript-time-ago/locale/cs/index.d.ts new file mode 100644 index 0000000000..1524718eb2 --- /dev/null +++ b/types/javascript-time-ago/locale/cs/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/cy/index.d.ts b/types/javascript-time-ago/locale/cy/index.d.ts new file mode 100644 index 0000000000..44ea406916 --- /dev/null +++ b/types/javascript-time-ago/locale/cy/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/da/index.d.ts b/types/javascript-time-ago/locale/da/index.d.ts new file mode 100644 index 0000000000..dbded170b9 --- /dev/null +++ b/types/javascript-time-ago/locale/da/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/de/index.d.ts b/types/javascript-time-ago/locale/de/index.d.ts new file mode 100644 index 0000000000..6528bb5791 --- /dev/null +++ b/types/javascript-time-ago/locale/de/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/dsb/index.d.ts b/types/javascript-time-ago/locale/dsb/index.d.ts new file mode 100644 index 0000000000..b108808dfa --- /dev/null +++ b/types/javascript-time-ago/locale/dsb/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/dz/index.d.ts b/types/javascript-time-ago/locale/dz/index.d.ts new file mode 100644 index 0000000000..71be82545b --- /dev/null +++ b/types/javascript-time-ago/locale/dz/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/ee/index.d.ts b/types/javascript-time-ago/locale/ee/index.d.ts new file mode 100644 index 0000000000..f1afecf39c --- /dev/null +++ b/types/javascript-time-ago/locale/ee/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/el/index.d.ts b/types/javascript-time-ago/locale/el/index.d.ts new file mode 100644 index 0000000000..04e8d31a69 --- /dev/null +++ b/types/javascript-time-ago/locale/el/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/en/index.d.ts b/types/javascript-time-ago/locale/en/index.d.ts new file mode 100644 index 0000000000..a202078a1e --- /dev/null +++ b/types/javascript-time-ago/locale/en/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/es-AR/index.d.ts b/types/javascript-time-ago/locale/es-AR/index.d.ts new file mode 100644 index 0000000000..cebb82399b --- /dev/null +++ b/types/javascript-time-ago/locale/es-AR/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/es-MX/index.d.ts b/types/javascript-time-ago/locale/es-MX/index.d.ts new file mode 100644 index 0000000000..f45e80f7bd --- /dev/null +++ b/types/javascript-time-ago/locale/es-MX/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/es-PY/index.d.ts b/types/javascript-time-ago/locale/es-PY/index.d.ts new file mode 100644 index 0000000000..22ed43c8aa --- /dev/null +++ b/types/javascript-time-ago/locale/es-PY/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/es-SV/index.d.ts b/types/javascript-time-ago/locale/es-SV/index.d.ts new file mode 100644 index 0000000000..53b402dde2 --- /dev/null +++ b/types/javascript-time-ago/locale/es-SV/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/es-US/index.d.ts b/types/javascript-time-ago/locale/es-US/index.d.ts new file mode 100644 index 0000000000..e85e5c15a4 --- /dev/null +++ b/types/javascript-time-ago/locale/es-US/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/es/index.d.ts b/types/javascript-time-ago/locale/es/index.d.ts new file mode 100644 index 0000000000..0f68bdc65b --- /dev/null +++ b/types/javascript-time-ago/locale/es/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/et/index.d.ts b/types/javascript-time-ago/locale/et/index.d.ts new file mode 100644 index 0000000000..55eae2a9dd --- /dev/null +++ b/types/javascript-time-ago/locale/et/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/eu/index.d.ts b/types/javascript-time-ago/locale/eu/index.d.ts new file mode 100644 index 0000000000..90d391eb60 --- /dev/null +++ b/types/javascript-time-ago/locale/eu/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/fa/index.d.ts b/types/javascript-time-ago/locale/fa/index.d.ts new file mode 100644 index 0000000000..2b30344fb2 --- /dev/null +++ b/types/javascript-time-ago/locale/fa/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/fi/index.d.ts b/types/javascript-time-ago/locale/fi/index.d.ts new file mode 100644 index 0000000000..6f6248184d --- /dev/null +++ b/types/javascript-time-ago/locale/fi/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/fil/index.d.ts b/types/javascript-time-ago/locale/fil/index.d.ts new file mode 100644 index 0000000000..f6079e9330 --- /dev/null +++ b/types/javascript-time-ago/locale/fil/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/fo/index.d.ts b/types/javascript-time-ago/locale/fo/index.d.ts new file mode 100644 index 0000000000..74f38f1160 --- /dev/null +++ b/types/javascript-time-ago/locale/fo/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/fr-CA/index.d.ts b/types/javascript-time-ago/locale/fr-CA/index.d.ts new file mode 100644 index 0000000000..95dc791808 --- /dev/null +++ b/types/javascript-time-ago/locale/fr-CA/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/fr/index.d.ts b/types/javascript-time-ago/locale/fr/index.d.ts new file mode 100644 index 0000000000..4cdc7e32fc --- /dev/null +++ b/types/javascript-time-ago/locale/fr/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/fur/index.d.ts b/types/javascript-time-ago/locale/fur/index.d.ts new file mode 100644 index 0000000000..f89ebf7ff4 --- /dev/null +++ b/types/javascript-time-ago/locale/fur/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/fy/index.d.ts b/types/javascript-time-ago/locale/fy/index.d.ts new file mode 100644 index 0000000000..31de8fa401 --- /dev/null +++ b/types/javascript-time-ago/locale/fy/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/ga/index.d.ts b/types/javascript-time-ago/locale/ga/index.d.ts new file mode 100644 index 0000000000..90921a78c0 --- /dev/null +++ b/types/javascript-time-ago/locale/ga/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/gd/index.d.ts b/types/javascript-time-ago/locale/gd/index.d.ts new file mode 100644 index 0000000000..2e7592eeaf --- /dev/null +++ b/types/javascript-time-ago/locale/gd/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/gl/index.d.ts b/types/javascript-time-ago/locale/gl/index.d.ts new file mode 100644 index 0000000000..60979cdf6f --- /dev/null +++ b/types/javascript-time-ago/locale/gl/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/gu/index.d.ts b/types/javascript-time-ago/locale/gu/index.d.ts new file mode 100644 index 0000000000..1d946b7937 --- /dev/null +++ b/types/javascript-time-ago/locale/gu/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/he/index.d.ts b/types/javascript-time-ago/locale/he/index.d.ts new file mode 100644 index 0000000000..fe57dfb30d --- /dev/null +++ b/types/javascript-time-ago/locale/he/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/hi/index.d.ts b/types/javascript-time-ago/locale/hi/index.d.ts new file mode 100644 index 0000000000..823a58d047 --- /dev/null +++ b/types/javascript-time-ago/locale/hi/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/hr/index.d.ts b/types/javascript-time-ago/locale/hr/index.d.ts new file mode 100644 index 0000000000..950036b94d --- /dev/null +++ b/types/javascript-time-ago/locale/hr/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/hsb/index.d.ts b/types/javascript-time-ago/locale/hsb/index.d.ts new file mode 100644 index 0000000000..bd969dd2c2 --- /dev/null +++ b/types/javascript-time-ago/locale/hsb/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/hu/index.d.ts b/types/javascript-time-ago/locale/hu/index.d.ts new file mode 100644 index 0000000000..b790927950 --- /dev/null +++ b/types/javascript-time-ago/locale/hu/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/hy/index.d.ts b/types/javascript-time-ago/locale/hy/index.d.ts new file mode 100644 index 0000000000..0b2aff53cc --- /dev/null +++ b/types/javascript-time-ago/locale/hy/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/ia/index.d.ts b/types/javascript-time-ago/locale/ia/index.d.ts new file mode 100644 index 0000000000..3bf3e26ad7 --- /dev/null +++ b/types/javascript-time-ago/locale/ia/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/id/index.d.ts b/types/javascript-time-ago/locale/id/index.d.ts new file mode 100644 index 0000000000..cee0ea0a33 --- /dev/null +++ b/types/javascript-time-ago/locale/id/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/index.d.ts b/types/javascript-time-ago/locale/index.d.ts new file mode 100644 index 0000000000..cca9ba88c3 --- /dev/null +++ b/types/javascript-time-ago/locale/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/is/index.d.ts b/types/javascript-time-ago/locale/is/index.d.ts new file mode 100644 index 0000000000..5efbf27e56 --- /dev/null +++ b/types/javascript-time-ago/locale/is/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/it/index.d.ts b/types/javascript-time-ago/locale/it/index.d.ts new file mode 100644 index 0000000000..0bdbe1c509 --- /dev/null +++ b/types/javascript-time-ago/locale/it/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/ja/index.d.ts b/types/javascript-time-ago/locale/ja/index.d.ts new file mode 100644 index 0000000000..2f3d7861eb --- /dev/null +++ b/types/javascript-time-ago/locale/ja/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/jgo/index.d.ts b/types/javascript-time-ago/locale/jgo/index.d.ts new file mode 100644 index 0000000000..d0964a8bf1 --- /dev/null +++ b/types/javascript-time-ago/locale/jgo/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/jv/index.d.ts b/types/javascript-time-ago/locale/jv/index.d.ts new file mode 100644 index 0000000000..01ab18d9e2 --- /dev/null +++ b/types/javascript-time-ago/locale/jv/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/ka/index.d.ts b/types/javascript-time-ago/locale/ka/index.d.ts new file mode 100644 index 0000000000..5156607b2b --- /dev/null +++ b/types/javascript-time-ago/locale/ka/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/kea/index.d.ts b/types/javascript-time-ago/locale/kea/index.d.ts new file mode 100644 index 0000000000..1b676354f5 --- /dev/null +++ b/types/javascript-time-ago/locale/kea/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/kk/index.d.ts b/types/javascript-time-ago/locale/kk/index.d.ts new file mode 100644 index 0000000000..3dc9b20602 --- /dev/null +++ b/types/javascript-time-ago/locale/kk/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/kl/index.d.ts b/types/javascript-time-ago/locale/kl/index.d.ts new file mode 100644 index 0000000000..d718b77351 --- /dev/null +++ b/types/javascript-time-ago/locale/kl/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/km/index.d.ts b/types/javascript-time-ago/locale/km/index.d.ts new file mode 100644 index 0000000000..e314e9f6dc --- /dev/null +++ b/types/javascript-time-ago/locale/km/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/kn/index.d.ts b/types/javascript-time-ago/locale/kn/index.d.ts new file mode 100644 index 0000000000..3e89b28e66 --- /dev/null +++ b/types/javascript-time-ago/locale/kn/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/ko/index.d.ts b/types/javascript-time-ago/locale/ko/index.d.ts new file mode 100644 index 0000000000..0b492b7821 --- /dev/null +++ b/types/javascript-time-ago/locale/ko/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/kok/index.d.ts b/types/javascript-time-ago/locale/kok/index.d.ts new file mode 100644 index 0000000000..4703484410 --- /dev/null +++ b/types/javascript-time-ago/locale/kok/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/ksh/index.d.ts b/types/javascript-time-ago/locale/ksh/index.d.ts new file mode 100644 index 0000000000..6bca2fafcb --- /dev/null +++ b/types/javascript-time-ago/locale/ksh/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/ku/index.d.ts b/types/javascript-time-ago/locale/ku/index.d.ts new file mode 100644 index 0000000000..66f0718b37 --- /dev/null +++ b/types/javascript-time-ago/locale/ku/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/ky/index.d.ts b/types/javascript-time-ago/locale/ky/index.d.ts new file mode 100644 index 0000000000..4d128605d2 --- /dev/null +++ b/types/javascript-time-ago/locale/ky/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/lb/index.d.ts b/types/javascript-time-ago/locale/lb/index.d.ts new file mode 100644 index 0000000000..0b8bd5ef21 --- /dev/null +++ b/types/javascript-time-ago/locale/lb/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/lkt/index.d.ts b/types/javascript-time-ago/locale/lkt/index.d.ts new file mode 100644 index 0000000000..1a0602eb92 --- /dev/null +++ b/types/javascript-time-ago/locale/lkt/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/lo/index.d.ts b/types/javascript-time-ago/locale/lo/index.d.ts new file mode 100644 index 0000000000..52167bd098 --- /dev/null +++ b/types/javascript-time-ago/locale/lo/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/lt/index.d.ts b/types/javascript-time-ago/locale/lt/index.d.ts new file mode 100644 index 0000000000..674bb91d30 --- /dev/null +++ b/types/javascript-time-ago/locale/lt/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/lv/index.d.ts b/types/javascript-time-ago/locale/lv/index.d.ts new file mode 100644 index 0000000000..ce168d5eab --- /dev/null +++ b/types/javascript-time-ago/locale/lv/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/mk/index.d.ts b/types/javascript-time-ago/locale/mk/index.d.ts new file mode 100644 index 0000000000..6da027111c --- /dev/null +++ b/types/javascript-time-ago/locale/mk/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/ml/index.d.ts b/types/javascript-time-ago/locale/ml/index.d.ts new file mode 100644 index 0000000000..490acf3270 --- /dev/null +++ b/types/javascript-time-ago/locale/ml/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/mn/index.d.ts b/types/javascript-time-ago/locale/mn/index.d.ts new file mode 100644 index 0000000000..fb0e96414b --- /dev/null +++ b/types/javascript-time-ago/locale/mn/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/mr/index.d.ts b/types/javascript-time-ago/locale/mr/index.d.ts new file mode 100644 index 0000000000..9db5c7cc1d --- /dev/null +++ b/types/javascript-time-ago/locale/mr/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/ms/index.d.ts b/types/javascript-time-ago/locale/ms/index.d.ts new file mode 100644 index 0000000000..9da9601bed --- /dev/null +++ b/types/javascript-time-ago/locale/ms/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/mt/index.d.ts b/types/javascript-time-ago/locale/mt/index.d.ts new file mode 100644 index 0000000000..222284c14e --- /dev/null +++ b/types/javascript-time-ago/locale/mt/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/my/index.d.ts b/types/javascript-time-ago/locale/my/index.d.ts new file mode 100644 index 0000000000..5fcad6246e --- /dev/null +++ b/types/javascript-time-ago/locale/my/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/mzn/index.d.ts b/types/javascript-time-ago/locale/mzn/index.d.ts new file mode 100644 index 0000000000..015f54edf5 --- /dev/null +++ b/types/javascript-time-ago/locale/mzn/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/nb/index.d.ts b/types/javascript-time-ago/locale/nb/index.d.ts new file mode 100644 index 0000000000..2ab6f7a27e --- /dev/null +++ b/types/javascript-time-ago/locale/nb/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/ne/index.d.ts b/types/javascript-time-ago/locale/ne/index.d.ts new file mode 100644 index 0000000000..8375839143 --- /dev/null +++ b/types/javascript-time-ago/locale/ne/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/nl/index.d.ts b/types/javascript-time-ago/locale/nl/index.d.ts new file mode 100644 index 0000000000..3673212551 --- /dev/null +++ b/types/javascript-time-ago/locale/nl/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/nn/index.d.ts b/types/javascript-time-ago/locale/nn/index.d.ts new file mode 100644 index 0000000000..b133bffeab --- /dev/null +++ b/types/javascript-time-ago/locale/nn/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/or/index.d.ts b/types/javascript-time-ago/locale/or/index.d.ts new file mode 100644 index 0000000000..c344376fb2 --- /dev/null +++ b/types/javascript-time-ago/locale/or/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/pa/index.d.ts b/types/javascript-time-ago/locale/pa/index.d.ts new file mode 100644 index 0000000000..61183b1d6f --- /dev/null +++ b/types/javascript-time-ago/locale/pa/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/pl/index.d.ts b/types/javascript-time-ago/locale/pl/index.d.ts new file mode 100644 index 0000000000..28de4d4917 --- /dev/null +++ b/types/javascript-time-ago/locale/pl/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/ps/index.d.ts b/types/javascript-time-ago/locale/ps/index.d.ts new file mode 100644 index 0000000000..4c23ece443 --- /dev/null +++ b/types/javascript-time-ago/locale/ps/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/pt/index.d.ts b/types/javascript-time-ago/locale/pt/index.d.ts new file mode 100644 index 0000000000..7b08b01c4d --- /dev/null +++ b/types/javascript-time-ago/locale/pt/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/qu/index.d.ts b/types/javascript-time-ago/locale/qu/index.d.ts new file mode 100644 index 0000000000..9890334a11 --- /dev/null +++ b/types/javascript-time-ago/locale/qu/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/ro/index.d.ts b/types/javascript-time-ago/locale/ro/index.d.ts new file mode 100644 index 0000000000..18b88d081c --- /dev/null +++ b/types/javascript-time-ago/locale/ro/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/ru/index.d.ts b/types/javascript-time-ago/locale/ru/index.d.ts new file mode 100644 index 0000000000..b8f6096552 --- /dev/null +++ b/types/javascript-time-ago/locale/ru/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/sah/index.d.ts b/types/javascript-time-ago/locale/sah/index.d.ts new file mode 100644 index 0000000000..91d5d2ad1d --- /dev/null +++ b/types/javascript-time-ago/locale/sah/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/sd/index.d.ts b/types/javascript-time-ago/locale/sd/index.d.ts new file mode 100644 index 0000000000..374f6a7201 --- /dev/null +++ b/types/javascript-time-ago/locale/sd/index.d.ts @@ -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; diff --git a/types/javascript-time-ago/locale/se-FI/index.d.ts b/types/javascript-time-ago/locale/se-FI/index.d.ts new file mode 100644 index 0000000000..a9061414a5 --- /dev/null +++ b/types/javascript-time-ago/locale/se-FI/index.d.ts @@ -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: "se-FI"; + long: Duration; + narrow: Duration; + short: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/se/index.d.ts b/types/javascript-time-ago/locale/se/index.d.ts new file mode 100644 index 0000000000..3849254128 --- /dev/null +++ b/types/javascript-time-ago/locale/se/index.d.ts @@ -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: "se"; + long: Duration; + narrow: Duration; + short: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/si/index.d.ts b/types/javascript-time-ago/locale/si/index.d.ts new file mode 100644 index 0000000000..c029866c96 --- /dev/null +++ b/types/javascript-time-ago/locale/si/index.d.ts @@ -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: "si"; + long: Duration; + narrow: Duration; + short: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/sk/index.d.ts b/types/javascript-time-ago/locale/sk/index.d.ts new file mode 100644 index 0000000000..b825cd0e30 --- /dev/null +++ b/types/javascript-time-ago/locale/sk/index.d.ts @@ -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: "sk"; + long: Duration; + narrow: Duration; + short: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/sl/index.d.ts b/types/javascript-time-ago/locale/sl/index.d.ts new file mode 100644 index 0000000000..3a0f03e65e --- /dev/null +++ b/types/javascript-time-ago/locale/sl/index.d.ts @@ -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: "sl"; + long: Duration; + narrow: Duration; + short: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/so/index.d.ts b/types/javascript-time-ago/locale/so/index.d.ts new file mode 100644 index 0000000000..11ed98752c --- /dev/null +++ b/types/javascript-time-ago/locale/so/index.d.ts @@ -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: "so"; + long: Duration; + narrow: Duration; + short: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/sq/index.d.ts b/types/javascript-time-ago/locale/sq/index.d.ts new file mode 100644 index 0000000000..fdf55bae58 --- /dev/null +++ b/types/javascript-time-ago/locale/sq/index.d.ts @@ -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: "sq"; + long: Duration; + narrow: Duration; + short: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/sr-Latn/index.d.ts b/types/javascript-time-ago/locale/sr-Latn/index.d.ts new file mode 100644 index 0000000000..fa42e1e465 --- /dev/null +++ b/types/javascript-time-ago/locale/sr-Latn/index.d.ts @@ -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: "sr-Latn"; + long: Duration; + narrow: Duration; + short: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/sr/index.d.ts b/types/javascript-time-ago/locale/sr/index.d.ts new file mode 100644 index 0000000000..578a5e6a24 --- /dev/null +++ b/types/javascript-time-ago/locale/sr/index.d.ts @@ -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: "sr"; + long: Duration; + narrow: Duration; + short: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/sv/index.d.ts b/types/javascript-time-ago/locale/sv/index.d.ts new file mode 100644 index 0000000000..afe15f67fc --- /dev/null +++ b/types/javascript-time-ago/locale/sv/index.d.ts @@ -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: "sv"; + long: Duration; + narrow: Duration; + short: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/sw/index.d.ts b/types/javascript-time-ago/locale/sw/index.d.ts new file mode 100644 index 0000000000..6e95d2e37e --- /dev/null +++ b/types/javascript-time-ago/locale/sw/index.d.ts @@ -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: "sw"; + long: Duration; + narrow: Duration; + short: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/ta/index.d.ts b/types/javascript-time-ago/locale/ta/index.d.ts new file mode 100644 index 0000000000..6f6e2992ae --- /dev/null +++ b/types/javascript-time-ago/locale/ta/index.d.ts @@ -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: "ta"; + long: Duration; + narrow: Duration; + short: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/te/index.d.ts b/types/javascript-time-ago/locale/te/index.d.ts new file mode 100644 index 0000000000..f5015b726d --- /dev/null +++ b/types/javascript-time-ago/locale/te/index.d.ts @@ -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: "te"; + long: Duration; + narrow: Duration; + short: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/th/index.d.ts b/types/javascript-time-ago/locale/th/index.d.ts new file mode 100644 index 0000000000..06eff4f685 --- /dev/null +++ b/types/javascript-time-ago/locale/th/index.d.ts @@ -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: "th"; + long: Duration; + narrow: Duration; + short: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/ti/index.d.ts b/types/javascript-time-ago/locale/ti/index.d.ts new file mode 100644 index 0000000000..6b9fb50526 --- /dev/null +++ b/types/javascript-time-ago/locale/ti/index.d.ts @@ -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: "ti"; + long: Duration; + narrow: Duration; + short: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/tk/index.d.ts b/types/javascript-time-ago/locale/tk/index.d.ts new file mode 100644 index 0000000000..7259007ddc --- /dev/null +++ b/types/javascript-time-ago/locale/tk/index.d.ts @@ -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: "tk"; + long: Duration; + narrow: Duration; + short: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/to/index.d.ts b/types/javascript-time-ago/locale/to/index.d.ts new file mode 100644 index 0000000000..77925351fb --- /dev/null +++ b/types/javascript-time-ago/locale/to/index.d.ts @@ -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: "to"; + long: Duration; + narrow: Duration; + short: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/tr/index.d.ts b/types/javascript-time-ago/locale/tr/index.d.ts new file mode 100644 index 0000000000..1ecd7ed754 --- /dev/null +++ b/types/javascript-time-ago/locale/tr/index.d.ts @@ -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: "tr"; + long: Duration; + narrow: Duration; + short: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/ug/index.d.ts b/types/javascript-time-ago/locale/ug/index.d.ts new file mode 100644 index 0000000000..ad6117cb34 --- /dev/null +++ b/types/javascript-time-ago/locale/ug/index.d.ts @@ -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: "ug"; + long: Duration; + narrow: Duration; + short: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/uk/index.d.ts b/types/javascript-time-ago/locale/uk/index.d.ts new file mode 100644 index 0000000000..47bfb920aa --- /dev/null +++ b/types/javascript-time-ago/locale/uk/index.d.ts @@ -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: "uk"; + long: Duration; + narrow: Duration; + short: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/ur-IN/index.d.ts b/types/javascript-time-ago/locale/ur-IN/index.d.ts new file mode 100644 index 0000000000..693e153811 --- /dev/null +++ b/types/javascript-time-ago/locale/ur-IN/index.d.ts @@ -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: "ur-IN"; + long: Duration; + narrow: Duration; + short: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/ur/index.d.ts b/types/javascript-time-ago/locale/ur/index.d.ts new file mode 100644 index 0000000000..5823c1870e --- /dev/null +++ b/types/javascript-time-ago/locale/ur/index.d.ts @@ -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: "ur"; + long: Duration; + narrow: Duration; + short: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/uz-Cyrl/index.d.ts b/types/javascript-time-ago/locale/uz-Cyrl/index.d.ts new file mode 100644 index 0000000000..7b6dad5e74 --- /dev/null +++ b/types/javascript-time-ago/locale/uz-Cyrl/index.d.ts @@ -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: "uz-Cyrl"; + long: Duration; + narrow: Duration; + short: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/uz/index.d.ts b/types/javascript-time-ago/locale/uz/index.d.ts new file mode 100644 index 0000000000..2131e4765a --- /dev/null +++ b/types/javascript-time-ago/locale/uz/index.d.ts @@ -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: "uz"; + long: Duration; + narrow: Duration; + short: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/vi/index.d.ts b/types/javascript-time-ago/locale/vi/index.d.ts new file mode 100644 index 0000000000..77f4915a00 --- /dev/null +++ b/types/javascript-time-ago/locale/vi/index.d.ts @@ -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: "vi"; + long: Duration; + narrow: Duration; + short: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/wae/index.d.ts b/types/javascript-time-ago/locale/wae/index.d.ts new file mode 100644 index 0000000000..1e2805750f --- /dev/null +++ b/types/javascript-time-ago/locale/wae/index.d.ts @@ -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: "wae"; + long: Duration; + narrow: Duration; + short: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/yi/index.d.ts b/types/javascript-time-ago/locale/yi/index.d.ts new file mode 100644 index 0000000000..eb94336d56 --- /dev/null +++ b/types/javascript-time-ago/locale/yi/index.d.ts @@ -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: "yi"; + long: Duration; + narrow: Duration; + short: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/yue-Hans/index.d.ts b/types/javascript-time-ago/locale/yue-Hans/index.d.ts new file mode 100644 index 0000000000..094c424bb4 --- /dev/null +++ b/types/javascript-time-ago/locale/yue-Hans/index.d.ts @@ -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: "yue-Hans"; + long: Duration; + narrow: Duration; + short: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/yue/index.d.ts b/types/javascript-time-ago/locale/yue/index.d.ts new file mode 100644 index 0000000000..11a6cce335 --- /dev/null +++ b/types/javascript-time-ago/locale/yue/index.d.ts @@ -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: "yue"; + long: Duration; + narrow: Duration; + short: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/zh-Hans-HK/index.d.ts b/types/javascript-time-ago/locale/zh-Hans-HK/index.d.ts new file mode 100644 index 0000000000..8d926596b5 --- /dev/null +++ b/types/javascript-time-ago/locale/zh-Hans-HK/index.d.ts @@ -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: "zh-Hans-HK"; + long: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/zh-Hans-MO/index.d.ts b/types/javascript-time-ago/locale/zh-Hans-MO/index.d.ts new file mode 100644 index 0000000000..6d06a37039 --- /dev/null +++ b/types/javascript-time-ago/locale/zh-Hans-MO/index.d.ts @@ -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: "zh-Hans-MO"; + long: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/zh-Hans-SG/index.d.ts b/types/javascript-time-ago/locale/zh-Hans-SG/index.d.ts new file mode 100644 index 0000000000..0c3a9e550f --- /dev/null +++ b/types/javascript-time-ago/locale/zh-Hans-SG/index.d.ts @@ -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: "zh-Hans-SG"; + long: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/zh-Hant-HK/index.d.ts b/types/javascript-time-ago/locale/zh-Hant-HK/index.d.ts new file mode 100644 index 0000000000..1d51be4c53 --- /dev/null +++ b/types/javascript-time-ago/locale/zh-Hant-HK/index.d.ts @@ -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: "zh-Hant-HK"; + long: Duration; + narrow: Duration; + short: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/zh-Hant-MO/index.d.ts b/types/javascript-time-ago/locale/zh-Hant-MO/index.d.ts new file mode 100644 index 0000000000..5dcb042d60 --- /dev/null +++ b/types/javascript-time-ago/locale/zh-Hant-MO/index.d.ts @@ -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: "zh-Hant-MO"; + long: Duration; + narrow: Duration; + short: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/zh-Hant/index.d.ts b/types/javascript-time-ago/locale/zh-Hant/index.d.ts new file mode 100644 index 0000000000..2b0cabd8aa --- /dev/null +++ b/types/javascript-time-ago/locale/zh-Hant/index.d.ts @@ -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: "zh-Hant"; + long: Duration; + narrow: Duration; + short: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/zh/index.d.ts b/types/javascript-time-ago/locale/zh/index.d.ts new file mode 100644 index 0000000000..bef76348fe --- /dev/null +++ b/types/javascript-time-ago/locale/zh/index.d.ts @@ -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: "zh"; + long: Duration; + narrow: Duration; + short: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/locale/zu/index.d.ts b/types/javascript-time-ago/locale/zu/index.d.ts new file mode 100644 index 0000000000..cdee888dec --- /dev/null +++ b/types/javascript-time-ago/locale/zu/index.d.ts @@ -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: "zu"; + long: Duration; + narrow: Duration; + short: Duration; + quantify: (n: number) => keyof QuantifyType; +} + +export = locale; diff --git a/types/javascript-time-ago/tsconfig.json b/types/javascript-time-ago/tsconfig.json new file mode 100644 index 0000000000..dc5795a7d6 --- /dev/null +++ b/types/javascript-time-ago/tsconfig.json @@ -0,0 +1,154 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es6"], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": ["../"], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "strictFunctionTypes": true, + "esModuleInterop": true + }, + "files": [ + "locale/lb/index.d.ts", + "locale/si/index.d.ts", + "locale/lt/index.d.ts", + "locale/ar-AE/index.d.ts", + "locale/sw/index.d.ts", + "locale/tk/index.d.ts", + "locale/he/index.d.ts", + "locale/es-MX/index.d.ts", + "locale/to/index.d.ts", + "locale/es-AR/index.d.ts", + "locale/kn/index.d.ts", + "locale/km/index.d.ts", + "locale/nl/index.d.ts", + "locale/br/index.d.ts", + "locale/sq/index.d.ts", + "locale/ast/index.d.ts", + "locale/eu/index.d.ts", + "locale/mn/index.d.ts", + "locale/ar/index.d.ts", + "locale/kk/index.d.ts", + "locale/tr/index.d.ts", + "locale/zh-Hans-MO/index.d.ts", + "locale/te/index.d.ts", + "locale/zh-Hant-MO/index.d.ts", + "locale/hi/index.d.ts", + "locale/se-FI/index.d.ts", + "locale/am/index.d.ts", + "locale/as/index.d.ts", + "locale/bs-Cyrl/index.d.ts", + "locale/es/index.d.ts", + "locale/chr/index.d.ts", + "locale/mzn/index.d.ts", + "locale/fil/index.d.ts", + "locale/bn/index.d.ts", + "locale/ne/index.d.ts", + "locale/is/index.d.ts", + "locale/wae/index.d.ts", + "locale/fur/index.d.ts", + "locale/ur/index.d.ts", + "locale/fr/index.d.ts", + "locale/yue/index.d.ts", + "locale/zh-Hans-SG/index.d.ts", + "locale/gl/index.d.ts", + "locale/nn/index.d.ts", + "locale/fi/index.d.ts", + "locale/ug/index.d.ts", + "locale/en/index.d.ts", + "locale/ko/index.d.ts", + "locale/hy/index.d.ts", + "locale/ky/index.d.ts", + "locale/lv/index.d.ts", + "locale/da/index.d.ts", + "locale/se/index.d.ts", + "locale/es-PY/index.d.ts", + "locale/ku/index.d.ts", + "locale/ml/index.d.ts", + "locale/mr/index.d.ts", + "locale/af/index.d.ts", + "locale/ru/index.d.ts", + "locale/or/index.d.ts", + "locale/uk/index.d.ts", + "locale/lo/index.d.ts", + "locale/fy/index.d.ts", + "locale/fa/index.d.ts", + "locale/zh-Hant/index.d.ts", + "locale/bs/index.d.ts", + "locale/lkt/index.d.ts", + "locale/kl/index.d.ts", + "locale/sk/index.d.ts", + "locale/nb/index.d.ts", + "locale/ca/index.d.ts", + "locale/ksh/index.d.ts", + "locale/bg/index.d.ts", + "locale/hr/index.d.ts", + "locale/uz-Cyrl/index.d.ts", + "locale/sv/index.d.ts", + "locale/dz/index.d.ts", + "locale/uz/index.d.ts", + "locale/gd/index.d.ts", + "locale/es-US/index.d.ts", + "locale/sr-Latn/index.d.ts", + "locale/fo/index.d.ts", + "locale/hu/index.d.ts", + "locale/ccp/index.d.ts", + "locale/kea/index.d.ts", + "locale/my/index.d.ts", + "locale/kok/index.d.ts", + "locale/zh-Hant-HK/index.d.ts", + "locale/th/index.d.ts", + "locale/el/index.d.ts", + "locale/ia/index.d.ts", + "locale/cy/index.d.ts", + "locale/jgo/index.d.ts", + "locale/pl/index.d.ts", + "locale/sl/index.d.ts", + "locale/ps/index.d.ts", + "locale/sr/index.d.ts", + "locale/id/index.d.ts", + "locale/et/index.d.ts", + "locale/yue-Hans/index.d.ts", + "locale/qu/index.d.ts", + "locale/it/index.d.ts", + "locale/so/index.d.ts", + "locale/zh-Hans-HK/index.d.ts", + "locale/az/index.d.ts", + "locale/ee/index.d.ts", + "locale/vi/index.d.ts", + "locale/ta/index.d.ts", + "locale/ur-IN/index.d.ts", + "locale/zu/index.d.ts", + "locale/mt/index.d.ts", + "locale/sd/index.d.ts", + "locale/zh/index.d.ts", + "locale/pt/index.d.ts", + "locale/ce/index.d.ts", + "locale/dsb/index.d.ts", + "locale/pa/index.d.ts", + "locale/es-SV/index.d.ts", + "locale/jv/index.d.ts", + "locale/cs/index.d.ts", + "locale/ga/index.d.ts", + "locale/sah/index.d.ts", + "locale/ja/index.d.ts", + "locale/mk/index.d.ts", + "locale/yi/index.d.ts", + "locale/fr-CA/index.d.ts", + "locale/de/index.d.ts", + "locale/hsb/index.d.ts", + "locale/be/index.d.ts", + "locale/gu/index.d.ts", + "locale/ms/index.d.ts", + "locale/ro/index.d.ts", + "locale/ka/index.d.ts", + "locale/ti/index.d.ts", + "index.d.ts", + "javascript-time-ago-tests.ts" + ] +} diff --git a/types/javascript-time-ago/tslint.json b/types/javascript-time-ago/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/javascript-time-ago/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }