From a6f84237aa249d246488d06439acbe0e6e364fd5 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Mon, 18 Apr 2022 04:46:31 -0700 Subject: [PATCH] fix: add missing docstring to the types --- types/index.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/types/index.d.ts b/types/index.d.ts index 21ca7bd..60ed245 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -25,11 +25,18 @@ export interface Locale { } export interface Formatter { + /** + * Returns difference between two dates as a text string. + */ format(firstDate: Date | number, secondDate: Date | number, options?: Config): string; } export function create(config?: Config): Formatter; +/** + * Adds pluralization data for the specified locale. + * Should be called in browser. + */ export function addLocale(localeData: (Locale | Locale[])); export const defaultConfig: Config;