From 3f6247d91e15d933b384d4a7834990e269cd3e63 Mon Sep 17 00:00:00 2001 From: Brie Bunge Date: Thu, 21 Sep 2017 12:45:47 -0700 Subject: [PATCH] [moment-timezone] Add Zone population field Population information was added in moment-timezone 0.5.0: https://github.com/moment/moment-timezone/commit/dab50e8bcbf2d98ae92e5c688f6849c830a0a791 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 --- types/moment-timezone/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/moment-timezone/index.d.ts b/types/moment-timezone/index.d.ts index 49c068a211..a839b093c4 100644 --- a/types/moment-timezone/index.d.ts +++ b/types/moment-timezone/index.d.ts @@ -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 // 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;