File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,9 @@ declare namespace dayjs {
7
7
export type OptionType = { locale ?: string , format ?: string , utc ?: boolean } | string
8
8
9
9
type UnitTypeShort = 'd' | 'M' | 'y' | 'h' | 'm' | 's' | 'ms'
10
- export type UnitType = 'millisecond' | 'second' | 'minute' | 'hour' | 'day' | 'month' | 'quarter' | ' year' | 'date' | UnitTypeShort ;
10
+ export type UnitType = 'millisecond' | 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year' | 'date' | UnitTypeShort ;
11
11
12
- type OpUnitTypeShort = 'w'
13
- export type OpUnitType = UnitType | "week" | OpUnitTypeShort ;
12
+ export type OpUnitType = UnitType | "week" | 'w' ;
14
13
15
14
class Dayjs {
16
15
constructor ( config ?: ConfigType )
@@ -63,7 +62,7 @@ declare namespace dayjs {
63
62
64
63
format ( template ?: string ) : string
65
64
66
- diff ( date : ConfigType , unit : OpUnitType , float ?: boolean ) : number
65
+ diff ( date : ConfigType , unit : OpUnitType | 'quarter' , float ?: boolean ) : number
67
66
68
67
valueOf ( ) : number
69
68
You can’t perform that action at this time.
0 commit comments