Skip to content

Commit 526f0ae

Browse files
R3tepiamkun
andauthored
fix: fix type error to add ordianl property in InstanceLocaleDataReturn and GlobalLocaleDataReturn types (#1931)
Co-authored-by: iamkun <[email protected]>
1 parent 8f09834 commit 526f0ae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

types/plugin/localeData.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ declare module 'dayjs' {
1616
monthsShort(instance?: Dayjs): MonthNames;
1717
longDateFormat(format: string): string;
1818
meridiem(hour?: number, minute?: number, isLower?: boolean): string;
19+
ordinal(n: number): string
1920
}
2021

2122
interface GlobalLocaleDataReturn {
@@ -27,6 +28,7 @@ declare module 'dayjs' {
2728
monthsShort(): MonthNames;
2829
longDateFormat(format: string): string;
2930
meridiem(hour?: number, minute?: number, isLower?: boolean): string;
31+
ordinal(n: number): string
3032
}
3133

3234
interface Dayjs {

0 commit comments

Comments
 (0)