Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions types/plugin/utc.d.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import { PluginFunc, ConfigType } from 'dayjs'
import { PluginFunc, ConfigType, OptionType } from 'dayjs'

declare const plugin: PluginFunc
export = plugin

declare module 'dayjs' {
interface Dayjs {

utc(keepLocalTime?: boolean): Dayjs

local(): Dayjs

isUTC(): boolean

utcOffset(offset: number | string, keepLocalTime?: boolean): Dayjs
}

export function utc(config?: ConfigType, format?: string, strict?: boolean): Dayjs
export function utc(config?: ConfigType, format?: OptionType, strict?: boolean): Dayjs
}