Skip to content

Commit c4921ae

Browse files
authored
fix: Fix .diff type definition error (#565)
fix #561
1 parent 5073cbd commit c4921ae

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, float?: boolean): number
68+
diff(date: ConfigType, unit: QUnitType | OpUnitType, float?: boolean): number
6969

7070
valueOf(): number
7171

0 commit comments

Comments
 (0)