[moment-timezone] Add Zone population field

Population information was added in moment-timezone 0.5.0:
dab50e8bcb

Zone objects have a population field as seen here:
https://github.com/moment/moment-timezone/blob/0.5.0/moment-timezone.js#L149

Its type is a number. If a timezone doesn't have a population, it defaults to 0, as seen here:
https://github.com/moment/moment-timezone/blob/0.5.0/moment-timezone.js#L129
This commit is contained in:
Brie Bunge
2017-09-21 12:45:47 -07:00
parent 60e2268280
commit 3f6247d91e

View File

@@ -1,4 +1,4 @@
// Type definitions for moment-timezone.js 0.2
// Type definitions for moment-timezone.js 0.5
// Project: http://momentjs.com/timezone/
// Definitions by: Michel Salib <https://github.com/michelsalib>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -14,6 +14,7 @@ declare module "moment" {
abbrs: string[];
untils: number[];
offsets: number[];
population: number;
abbr(timestamp: number): string;
offset(timestamp: number): number;