Skip to content

Commit f0f43d2

Browse files
pochi-satoiamkun
authored andcommitted
fix: Update types of .diff API (#617)
1 parent e5a257c commit f0f43d2

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
@@ -65,7 +65,7 @@ declare namespace dayjs {
6565

6666
format(template?: string): string
6767

68-
diff(date: ConfigType, unit: QUnitType | OpUnitType, float?: boolean): number
68+
diff(date: ConfigType, unit?: QUnitType | OpUnitType, float?: boolean): number
6969

7070
valueOf(): number
7171

0 commit comments

Comments
 (0)