diff --git a/definitions/npm/moment-timezone_v2.x.x/flow_v0.104.x-/moment-timezone_v2.x.x.js b/definitions/npm/moment-timezone_v2.x.x/flow_v0.104.x-/moment-timezone_v2.x.x.js new file mode 100644 index 0000000000..b471f54151 --- /dev/null +++ b/definitions/npm/moment-timezone_v2.x.x/flow_v0.104.x-/moment-timezone_v2.x.x.js @@ -0,0 +1,76 @@ +/** + * Flowtype definitions for moment-timezone + * Generated by Flowgen from a Typescript Definition + * Flowgen v1.10.0 + */ + +import * as moment from "moment-timezone"; +declare module "moment-timezone" { + declare interface MomentZone { + name: string; + abbrs: string[]; + untils: number[]; + offsets: number[]; + population: number; + abbr(timestamp: number): string; + offset(timestamp: number): number; + utcOffset(timestamp: number): number; + parse(timestamp: number): number; + } + declare interface MomentTimezone { + (): moment.Moment; + (timezone: string): moment.Moment; + (date: number, timezone: string): moment.Moment; + (date: number[], timezone: string): moment.Moment; + (date: string, timezone: string): moment.Moment; + ( + date: string, + format: moment.MomentFormatSpecification, + timezone: string + ): moment.Moment; + ( + date: string, + format: moment.MomentFormatSpecification, + strict: boolean, + timezone: string + ): moment.Moment; + ( + date: string, + format: moment.MomentFormatSpecification, + language: string, + timezone: string + ): moment.Moment; + ( + date: string, + format: moment.MomentFormatSpecification, + language: string, + strict: boolean, + timezone: string + ): moment.Moment; + (date: Date, timezone: string): moment.Moment; + (date: moment.Moment, timezone: string): moment.Moment; + (date: any, timezone: string): moment.Moment; + zone(timezone: string): MomentZone | null; + add(packedZoneString: string): void; + add(packedZoneString: string[]): void; + link(packedLinkString: string): void; + link(packedLinkString: string[]): void; + load(data: { + version: string, + links: string[], + zones: string[], + ... + }): void; + names(): string[]; + guess(ignoreCache?: boolean): string; + setDefault(timezone?: string): MomentTimezone; + } + declare interface Moment { + tz(): string | void; + tz(timezone: string, keepLocalTime?: boolean): moment.Moment; + zoneAbbr(): string; + zoneName(): string; + } + declare var tz: MomentTimezone; + declare module.exports: typeof moment; +} \ No newline at end of file diff --git a/definitions/npm/moment-timezone_v2.x.x/flow_v0.25.x-v0.103.x/moment-timezone_v2.x.x.js b/definitions/npm/moment-timezone_v2.x.x/flow_v0.25.x-v0.103.x/moment-timezone_v2.x.x.js new file mode 100644 index 0000000000..b471f54151 --- /dev/null +++ b/definitions/npm/moment-timezone_v2.x.x/flow_v0.25.x-v0.103.x/moment-timezone_v2.x.x.js @@ -0,0 +1,76 @@ +/** + * Flowtype definitions for moment-timezone + * Generated by Flowgen from a Typescript Definition + * Flowgen v1.10.0 + */ + +import * as moment from "moment-timezone"; +declare module "moment-timezone" { + declare interface MomentZone { + name: string; + abbrs: string[]; + untils: number[]; + offsets: number[]; + population: number; + abbr(timestamp: number): string; + offset(timestamp: number): number; + utcOffset(timestamp: number): number; + parse(timestamp: number): number; + } + declare interface MomentTimezone { + (): moment.Moment; + (timezone: string): moment.Moment; + (date: number, timezone: string): moment.Moment; + (date: number[], timezone: string): moment.Moment; + (date: string, timezone: string): moment.Moment; + ( + date: string, + format: moment.MomentFormatSpecification, + timezone: string + ): moment.Moment; + ( + date: string, + format: moment.MomentFormatSpecification, + strict: boolean, + timezone: string + ): moment.Moment; + ( + date: string, + format: moment.MomentFormatSpecification, + language: string, + timezone: string + ): moment.Moment; + ( + date: string, + format: moment.MomentFormatSpecification, + language: string, + strict: boolean, + timezone: string + ): moment.Moment; + (date: Date, timezone: string): moment.Moment; + (date: moment.Moment, timezone: string): moment.Moment; + (date: any, timezone: string): moment.Moment; + zone(timezone: string): MomentZone | null; + add(packedZoneString: string): void; + add(packedZoneString: string[]): void; + link(packedLinkString: string): void; + link(packedLinkString: string[]): void; + load(data: { + version: string, + links: string[], + zones: string[], + ... + }): void; + names(): string[]; + guess(ignoreCache?: boolean): string; + setDefault(timezone?: string): MomentTimezone; + } + declare interface Moment { + tz(): string | void; + tz(timezone: string, keepLocalTime?: boolean): moment.Moment; + zoneAbbr(): string; + zoneName(): string; + } + declare var tz: MomentTimezone; + declare module.exports: typeof moment; +} \ No newline at end of file