ajustes de importação
This commit is contained in:
parent
287f308c3f
commit
850a683ae0
6 changed files with 57 additions and 22 deletions
29
src/dayjs.ts
29
src/dayjs.ts
|
|
@ -2,15 +2,15 @@ import dayjs, { type Dayjs } from "dayjs"
|
|||
|
||||
export type { ManipulateType } from "dayjs"
|
||||
|
||||
import duration from "dayjs/plugin/duration.js"
|
||||
import isSameOrAfter from "dayjs/plugin/isSameOrAfter.js"
|
||||
import isSameOrBefore from "dayjs/plugin/isSameOrBefore.js"
|
||||
import minMax from "dayjs/plugin/minMax.js"
|
||||
import relativeTime from "dayjs/plugin/relativeTime.js"
|
||||
import timezone from "dayjs/plugin/timezone.js"
|
||||
import utc from "dayjs/plugin/utc.js"
|
||||
import weekOfYear from "dayjs/plugin/weekOfYear.js"
|
||||
import "dayjs/locale/pt-br.js"
|
||||
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 "dayjs/locale/pt-br"
|
||||
dayjs.locale("pt-br")
|
||||
|
||||
dayjs.extend(utc)
|
||||
|
|
@ -24,4 +24,15 @@ dayjs.extend(duration)
|
|||
|
||||
export const dayjsbr = dayjs
|
||||
|
||||
export {
|
||||
duration,
|
||||
isSameOrAfter,
|
||||
isSameOrBefore,
|
||||
minMax,
|
||||
relativeTime,
|
||||
timezone,
|
||||
utc,
|
||||
weekOfYear,
|
||||
}
|
||||
|
||||
export type { Dayjs }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue