forked from Mirrors/elk
chore: fix types
This commit is contained in:
parent
0a5edda4cd
commit
bcba3ca970
1 changed files with 1 additions and 0 deletions
|
@ -79,6 +79,7 @@ export const useTimeAgoOptions = (short = false): UseTimeAgoOptions<false> => {
|
|||
week: (n, p) => t(`time_ago_options.${prefix}week_${p ? 'past' : 'future'}`, n),
|
||||
month: (n, p) => t(`time_ago_options.${prefix}month_${p ? 'past' : 'future'}`, n),
|
||||
year: (n, p) => t(`time_ago_options.${prefix}year_${p ? 'past' : 'future'}`, n),
|
||||
invalid: '',
|
||||
},
|
||||
fullDateFormatter(date) {
|
||||
return d(date, short ? 'short' : 'long')
|
||||
|
|
Loading…
Reference in a new issue