chore: fix types

zio/stable
Anthony Fu 2022-12-20 14:27:53 +01:00
parent 0a5edda4cd
commit bcba3ca970
1 changed files with 1 additions and 0 deletions

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