/
githubmirror
/
dayjs
Обзор
Документация
Войти
/
githubmirror
/
dayjs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
types/plugin/timezone.d.ts
20 строк
502 B
andrew-atwood-infinitusai
fix: timezone type mark `date` parameter as optional (#2222)
11 фев 2023, 09:46
Не верифицирован
11 фев 2023, 09:46
b87aa0e
Код
Авторство
О чём код?
import { PluginFunc, ConfigType } from 'dayjs' declare const plugin: PluginFunc export = plugin declare module 'dayjs' { interface Dayjs { tz(timezone?: string, keepLocalTime?: boolean): Dayjs offsetName(type?: 'short' | 'long'): string | undefined } interface DayjsTimezone { (date?: ConfigType, timezone?: string): Dayjs (date: ConfigType, format: string, timezone?: string): Dayjs guess(): string setDefault(timezone?: string): void } const tz: DayjsTimezone }