ajuste na importação do dayjs

This commit is contained in:
Luiz Silva 2025-10-26 19:22:44 -03:00
parent cb63a087fe
commit fa4b956698
5 changed files with 34 additions and 34 deletions

View file

@ -4,23 +4,23 @@ const dayjsbr = dayjs
export type { ManipulateType } from "dayjs"
import "dayjs/locale/pt-br"
import duration from "dayjs/plugin/duration"
import isSameOrAfter from "dayjs/plugin/isSameOrAfter"
import isSameOrBefore from "dayjs/plugin/isSameOrBefore"
import minMax from "dayjs/plugin/minMax"
import relativeTime from "dayjs/plugin/relativeTime"
import timezone from "dayjs/plugin/timezone"
import utc from "dayjs/plugin/utc"
import weekOfYear from "dayjs/plugin/weekOfYear"
import * as duration from "dayjs/plugin/duration"
import * as isSameOrAfter from "dayjs/plugin/isSameOrAfter"
import * as isSameOrBefore from "dayjs/plugin/isSameOrBefore"
import * as minMax from "dayjs/plugin/minMax"
import * as relativeTime from "dayjs/plugin/relativeTime"
import * as timezone from "dayjs/plugin/timezone"
import * as utc from "dayjs/plugin/utc"
import * as weekOfYear from "dayjs/plugin/weekOfYear"
dayjsbr.extend(utc)
dayjsbr.extend(timezone)
dayjsbr.extend(weekOfYear)
dayjsbr.extend(isSameOrBefore)
dayjsbr.extend(isSameOrAfter)
dayjsbr.extend(minMax)
dayjsbr.extend(relativeTime)
dayjsbr.extend(duration)
dayjsbr.extend(utc.default)
dayjsbr.extend(timezone.default)
dayjsbr.extend(weekOfYear.default)
dayjsbr.extend(isSameOrBefore.default)
dayjsbr.extend(isSameOrAfter.default)
dayjsbr.extend(minMax.default)
dayjsbr.extend(relativeTime.default)
dayjsbr.extend(duration.default)
dayjsbr.locale("pt-br")
export { dayjsbr, dayjs }