Skip to content

Commit

Permalink
fix: fix objectSupport plugin ConfigTypeMap type (iamkun#1441) (iamku…
Browse files Browse the repository at this point in the history
  • Loading branch information
autopp authored Jul 19, 2022
1 parent 22cbeab commit fd51fe4
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 fd51fe4

Please sign in to comment.