1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-19 23:40:07 +00:00

chore: fix types

This commit is contained in:
Anthony Fu 2022-12-20 14:27:53 +01:00
parent 0a5edda4cd
commit bcba3ca970

View file

@ -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')