Skip to content

Commit

Permalink
fix: add ConfigTypeMap entry for objectSupport (iamkun#1441)
Browse files Browse the repository at this point in the history
  • Loading branch information
autopp committed Jul 18, 2022
1 parent 36662dc commit 209df6f
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions types/plugin/objectSupport.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,40 @@ declare module 'dayjs' {
add(argument: object): Dayjs
subtract(argument: object): Dayjs
}

interface ConfigTypeMap {
objectSupport: {
years?: number | string;
year?: number | string;
y?: number | string;

months?: number | string;
month?: number | string;
M?: number | string;

days?: number | string;
day?: number | string;
d?: number | string;

dates?: number | string;
date?: number | string;
D?: number | string;

hours?: number | string;
hour?: number | string;
h?: number | string;

minutes?: number | string;
minute?: number | string;
m?: number | string;

seconds?: number | string;
second?: number | string;
s?: number | string;

milliseconds?: number | string;
millisecond?: number | string;
ms?: number | string;
}
}
}

0 comments on commit 209df6f

Please sign in to comment.