mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 20:39:17 +08:00
[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:
3
types/moment-timezone/index.d.ts
vendored
3
types/moment-timezone/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user