Skip to content

Commit b045baf

Browse files
authoredMar 11, 2022
fix: add missing date shorthand D type definition (#1752)
1 parent dcbf170 commit b045baf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎types/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ declare namespace dayjs {
1919

2020
export type OptionType = FormatObject | string | string[]
2121

22-
export type UnitTypeShort = 'd' | 'M' | 'y' | 'h' | 'm' | 's' | 'ms'
22+
export type UnitTypeShort = 'd' | 'D' | 'M' | 'y' | 'h' | 'm' | 's' | 'ms'
2323

2424
export type UnitTypeLong = 'millisecond' | 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year' | 'date'
2525

0 commit comments

Comments
 (0)
Please sign in to comment.