.tz() can also return undefined as per the docs

This commit is contained in:
Wouter van Heeswijk
2018-04-25 11:40:14 +02:00
parent d7e5361938
commit 689c9abdb2
+1 -1
View File
@@ -57,7 +57,7 @@ declare module "moment" {
}
interface Moment {
tz(): string;
tz(): string | undefined;
tz(timezone: string): Moment;
zoneAbbr(): string;
zoneName(): string;