summaryrefslogtreecommitdiffstats
path: root/server/modules/dayjs/plugin/timezone.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/modules/dayjs/plugin/timezone.d.ts')
-rw-r--r--server/modules/dayjs/plugin/timezone.d.ts20
1 files changed, 20 insertions, 0 deletions
diff --git a/server/modules/dayjs/plugin/timezone.d.ts b/server/modules/dayjs/plugin/timezone.d.ts
new file mode 100644
index 0000000..d504f69
--- /dev/null
+++ b/server/modules/dayjs/plugin/timezone.d.ts
@@ -0,0 +1,20 @@
+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
+}