From 526f0ae549ffbeeb9ef1099ca23964791fc59743 Mon Sep 17 00:00:00 2001 From: R3tep Date: Sat, 11 Jun 2022 05:44:35 +0200 Subject: [PATCH] fix: fix type error to add ordianl property in InstanceLocaleDataReturn and GlobalLocaleDataReturn types (#1931) Co-authored-by: iamkun --- types/plugin/localeData.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/plugin/localeData.d.ts b/types/plugin/localeData.d.ts index bc0aa14bd..ae9e55766 100644 --- a/types/plugin/localeData.d.ts +++ b/types/plugin/localeData.d.ts @@ -16,6 +16,7 @@ declare module 'dayjs' { monthsShort(instance?: Dayjs): MonthNames; longDateFormat(format: string): string; meridiem(hour?: number, minute?: number, isLower?: boolean): string; + ordinal(n: number): string } interface GlobalLocaleDataReturn { @@ -27,6 +28,7 @@ declare module 'dayjs' { monthsShort(): MonthNames; longDateFormat(format: string): string; meridiem(hour?: number, minute?: number, isLower?: boolean): string; + ordinal(n: number): string } interface Dayjs {