mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 04:01:52 +00:00
Added a test that type checks the .tz() function
This commit is contained in:
@@ -83,3 +83,5 @@ moment.tz.guess(true);
|
||||
const zoneAbbr: string = moment.tz('America/Los_Angeles').zoneAbbr();
|
||||
|
||||
const zoneName: string = moment.tz('America/Los_Angeles').zoneName();
|
||||
|
||||
const zoneType: string | undefined = moment.tz('2013-11-18 11:55').tz();
|
||||
|
||||
Reference in New Issue
Block a user