ajuste de pacotes

This commit is contained in:
Luiz Silva 2025-10-26 20:20:39 -03:00
parent d9c2b3580e
commit 16706f7438
4 changed files with 11 additions and 4 deletions

View file

@ -1,5 +1,5 @@
// dayjsbr.ts
import dayjs from "dayjs"
import "dayjs/locale/pt-br"
import duration from "dayjs/plugin/duration"
@ -11,6 +11,7 @@ import timezone from "dayjs/plugin/timezone"
import utc from "dayjs/plugin/utc"
import weekOfYear from "dayjs/plugin/weekOfYear"
// ordem dos extends (utc antes de timezone)
dayjs.extend(utc)
dayjs.extend(timezone)
dayjs.extend(weekOfYear)
@ -23,5 +24,9 @@ dayjs.extend(duration)
dayjs.locale("pt-br")
export const dayjsbr = dayjs
export { dayjs }
export default dayjsbr
// útil para tipagens em chamadas de add/subtract etc.
export type { ManipulateType } from "dayjs"
export { dayjs }