Skip to content

Commit

Permalink
fix: fix type error to add ordianl property in InstanceLocaleDataRetu…
Browse files Browse the repository at this point in the history
…rn and GlobalLocaleDataReturn types (iamkun#1931)

Co-authored-by: iamkun <kunhello@outlook.com>
  • Loading branch information
R3tep and iamkun authored Jun 11, 2022
1 parent 8f09834 commit 526f0ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions types/plugin/localeData.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit 526f0ae

Please sign in to comment.