dayjs
Version:
2KB immutable date time library alternative to Moment.js with the same modern API
18 lines (13 loc) • 309 B
TypeScript
import { PluginFunc, ConfigType } from 'dayjs'
declare const plugin: PluginFunc
export = plugin
declare module 'dayjs' {
interface Dayjs {
tz(timezone: string): Dayjs
}
interface DayjsTimezone {
(date: ConfigType, timezone: string): Dayjs
guess(): string
}
const tz: DayjsTimezone
}