From 689c9abdb257bc88346a572880fc62df879866d6 Mon Sep 17 00:00:00 2001 From: Wouter van Heeswijk Date: Wed, 25 Apr 2018 11:40:14 +0200 Subject: [PATCH] .tz() can also return undefined as per the docs --- types/moment-timezone/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/moment-timezone/index.d.ts b/types/moment-timezone/index.d.ts index c3927415c6..727c91cad4 100644 --- a/types/moment-timezone/index.d.ts +++ b/types/moment-timezone/index.d.ts @@ -57,7 +57,7 @@ declare module "moment" { } interface Moment { - tz(): string; + tz(): string | undefined; tz(timezone: string): Moment; zoneAbbr(): string; zoneName(): string;