Browse Source

[RN] Update react-native to 0.55.4 (continued)

master
Lyubo Marinov 6 years ago
parent
commit
efc9cc9f50

+ 3
- 0
.gitignore View File

@@ -68,3 +68,6 @@ buck-out/
68 68
 */fastlane/report.xml
69 69
 */fastlane/Preview.html
70 70
 */fastlane/screenshots
71
+
72
+# Bundle artifact
73
+*.jsbundle

+ 3686
- 0
flow-typed/npm/jquery_v3.x.x.js
File diff suppressed because it is too large
View File


+ 35
- 32
flow-typed/npm/lodash_v4.x.x.js View File

@@ -1,3 +1,6 @@
1
+// flow-typed signature: 99202f0cce15ad31fae01af918065827
2
+// flow-typed version: ce66c2353d/lodash_v4.x.x/flow_>=v0.63.x
3
+
1 4
 declare module "lodash" {
2 5
   declare type __CurriedFunction1<A, R, AA: A> = (...r: [AA]) => R;
3 6
   declare type CurriedFunction1<A, R> = __CurriedFunction1<A, R, *>;
@@ -211,8 +214,8 @@ declare module "lodash" {
211 214
     // Array
212 215
     chunk<T>(array?: ?Array<T>, size?: ?number): Array<Array<T>>;
213 216
     compact<T, N: ?T>(array?: ?Array<N>): Array<T>;
214
-    concat<T>(base?: ?Array<T>, ...elements: Array<any>): Array<T | any>;
215
-    difference<T>(array?: ?$ReadOnlyArray<T>, values?: ?$ReadOnlyArray<T>): Array<T>;
217
+    concat<T>(base?: ?$ReadOnlyArray<T>, ...elements: Array<any>): Array<T | any>;
218
+    difference<T>(array?: ?$ReadOnlyArray<T>, ...values: Array<?$ReadOnlyArray<T>>): Array<T>;
216 219
     differenceBy<T>(
217 220
       array?: ?$ReadOnlyArray<T>,
218 221
       values?: ?$ReadOnlyArray<T>,
@@ -250,12 +253,12 @@ declare module "lodash" {
250 253
       fromIndex?: ?number
251 254
     ): -1;
252 255
     // alias of _.head
253
-    first<T>(array: ?Array<T>): T;
256
+    first<T>(array: ?$ReadOnlyArray<T>): T;
254 257
     flatten<T, X>(array?: ?Array<Array<T> | X>): Array<T | X>;
255 258
     flattenDeep<T>(array?: ?any[]): Array<T>;
256 259
     flattenDepth(array?: ?any[], depth?: ?number): any[];
257 260
     fromPairs<A, B>(pairs?: ?Array<[A, B]>): { [key: A]: B };
258
-    head<T>(array: ?Array<T>): T;
261
+    head<T>(array: ?$ReadOnlyArray<T>): T;
259 262
     indexOf<T>(array: Array<T>, value: T, fromIndex?: number): number;
260 263
     indexOf<T>(array: void | null, value?: ?T, fromIndex?: ?number): -1;
261 264
     initial<T>(array: ?Array<T>): Array<T>;
@@ -328,7 +331,7 @@ declare module "lodash" {
328 331
     remove<T>(array?: ?Array<T>, predicate?: ?Predicate<T>): Array<T>;
329 332
     reverse<T>(array: Array<T>): Array<T>;
330 333
     reverse<T: void | null>(array: T): T;
331
-    slice<T>(array?: ?Array<T>, start?: ?number, end?: ?number): Array<T>;
334
+    slice<T>(array?: ?$ReadOnlyArray<T>, start?: ?number, end?: ?number): Array<T>;
332 335
     sortedIndex<T>(array: Array<T>, value: T): number;
333 336
     sortedIndex<T>(array: void | null, value: ?T): 0;
334 337
     sortedIndexBy<T>(
@@ -410,7 +413,7 @@ declare module "lodash" {
410 413
     uniqWith<T>(array?: ?Array<T>, comparator?: ?Comparator<T>): Array<T>;
411 414
     unzip<T>(array?: ?Array<T>): Array<T>;
412 415
     unzipWith<T>(array: ?Array<T>, iteratee?: ?Iteratee<T>): Array<T>;
413
-    without<T>(array?: ?Array<T>, ...values?: Array<?T>): Array<T>;
416
+    without<T>(array?: ?$ReadOnlyArray<T>, ...values?: Array<?T>): Array<T>;
414 417
     xor<T>(...array: Array<Array<T>>): Array<T>;
415 418
     //Workaround until (...parameter: T, parameter2: U) works
416 419
     xorBy<T>(a1?: ?Array<T>, iteratee?: ?ValueOnlyIteratee<T>): Array<T>;
@@ -509,16 +512,16 @@ declare module "lodash" {
509 512
     countBy<T>(array: void | null, iteratee?: ?ValueOnlyIteratee<T>): {};
510 513
     countBy<T: Object>(object: T, iteratee?: ?ValueOnlyIteratee<T>): Object;
511 514
     // alias of _.forEach
512
-    each<T>(array: Array<T>, iteratee?: ?Iteratee<T>): Array<T>;
515
+    each<T>(array: $ReadOnlyArray<T>, iteratee?: ?Iteratee<T>): Array<T>;
513 516
     each<T: void | null>(array: T, iteratee?: ?Iteratee<any>): T;
514 517
     each<T: Object>(object: T, iteratee?: ?OIteratee<T>): T;
515 518
     // alias of _.forEachRight
516
-    eachRight<T>(array: Array<T>, iteratee?: ?Iteratee<T>): Array<T>;
519
+    eachRight<T>(array: $ReadOnlyArray<T>, iteratee?: ?Iteratee<T>): Array<T>;
517 520
     eachRight<T: void | null>(array: T, iteratee?: ?Iteratee<any>): T;
518 521
     eachRight<T: Object>(object: T, iteratee?: OIteratee<T>): T;
519 522
     every<T>(array?: ?$ReadOnlyArray<T>, iteratee?: ?Iteratee<T>): boolean;
520 523
     every<T: Object>(object: T, iteratee?: OIteratee<T>): boolean;
521
-    filter<T>(array?: ?Array<T>, predicate?: ?Predicate<T>): Array<T>;
524
+    filter<T>(array?: ?$ReadOnlyArray<T>, predicate?: ?Predicate<T>): Array<T>;
522 525
     filter<A, T: { [id: string]: A }>(
523 526
       object: T,
524 527
       predicate?: OPredicate<A, T>
@@ -573,10 +576,10 @@ declare module "lodash" {
573 576
       iteratee?: OFlatMapIteratee<T, U>,
574 577
       depth?: number
575 578
     ): Array<U>;
576
-    forEach<T>(array: Array<T>, iteratee?: ?Iteratee<T>): Array<T>;
579
+    forEach<T>(array: $ReadOnlyArray<T>, iteratee?: ?Iteratee<T>): Array<T>;
577 580
     forEach<T: void | null>(array: T, iteratee?: ?Iteratee<any>): T;
578 581
     forEach<T: Object>(object: T, iteratee?: ?OIteratee<T>): T;
579
-    forEachRight<T>(array: Array<T>, iteratee?: ?Iteratee<T>): Array<T>;
582
+    forEachRight<T>(array: $ReadOnlyArray<T>, iteratee?: ?Iteratee<T>): Array<T>;
580 583
     forEachRight<T: void | null>(array: T, iteratee?: ?Iteratee<any>): T;
581 584
     forEachRight<T: Object>(object: T, iteratee?: ?OIteratee<T>): T;
582 585
     groupBy<V, T>(
@@ -591,7 +594,7 @@ declare module "lodash" {
591 594
       object: T,
592 595
       iteratee?: ValueOnlyIteratee<A>
593 596
     ): { [key: V]: Array<A> };
594
-    includes<T>(array: Array<T>, value: T, fromIndex?: ?number): boolean;
597
+    includes<T>(array: $ReadOnlyArray<T>, value: T, fromIndex?: ?number): boolean;
595 598
     includes<T>(array: void | null, value?: ?T, fromIndex?: ?number): false;
596 599
     includes<T: Object>(object: T, value: any, fromIndex?: number): boolean;
597 600
     includes(str: string, value: string, fromIndex?: number): boolean;
@@ -703,7 +706,7 @@ declare module "lodash" {
703 706
       iteratee?: ?(accumulator: U, value: any, key: string, object: T) => U,
704 707
       accumulator?: ?U
705 708
     ): U;
706
-    reject<T>(array: ?Array<T>, predicate?: Predicate<T>): Array<T>;
709
+    reject<T>(array: ?$ReadOnlyArray<T>, predicate?: Predicate<T>): Array<T>;
707 710
     reject<V: Object, A, T: { [id: string]: A }>(
708 711
       object?: ?T,
709 712
       predicate?: ?OPredicate<A, T>
@@ -714,7 +717,7 @@ declare module "lodash" {
714 717
     sampleSize<V, T: Object>(object: T, n?: number): Array<V>;
715 718
     shuffle<T>(array: ?Array<T>): Array<T>;
716 719
     shuffle<V, T: Object>(object: T): Array<V>;
717
-    size(collection: Array<any> | Object | string): number;
720
+    size(collection: $ReadOnlyArray<any> | Object | string): number;
718 721
     some<T>(array: ?$ReadOnlyArray<T>, predicate?: Predicate<T>): boolean;
719 722
     some<T>(array: void | null, predicate?: ?Predicate<T>): false;
720 723
     some<A, T: { [id: string]: A }>(
@@ -927,7 +930,7 @@ declare module "lodash" {
927 930
     random(lower?: number, upper?: number, floating?: boolean): number;
928 931
 
929 932
     // Object
930
-    assign(object?: ?Object, ...sources?: Array<Object>): Object;
933
+    assign(object?: ?Object, ...sources?: Array<?Object>): Object;
931 934
     assignIn(): {};
932 935
     assignIn<A, B>(a: A, b: B): A & B;
933 936
     assignIn<A, B, C>(a: A, b: B, c: C): A & B & C;
@@ -1039,8 +1042,8 @@ declare module "lodash" {
1039 1042
     at(object?: ?Object, paths: Array<string>): Array<any>;
1040 1043
     create<T>(prototype: T, properties: Object): $Supertype<T>;
1041 1044
     create(prototype: any, properties: void | null): {};
1042
-    defaults(object?: ?Object, ...sources?: Array<Object>): Object;
1043
-    defaultsDeep(object?: ?Object, ...sources?: Array<Object>): Object;
1045
+    defaults(object?: ?Object, ...sources?: Array<?Object>): Object;
1046
+    defaultsDeep(object?: ?Object, ...sources?: Array<?Object>): Object;
1044 1047
     // alias for _.toPairs
1045 1048
     entries(object?: ?Object): Array<[string, any]>;
1046 1049
     // alias for _.toPairsIn
@@ -1128,8 +1131,8 @@ declare module "lodash" {
1128 1131
     functions(object?: ?Object): Array<string>;
1129 1132
     functionsIn(object?: ?Object): Array<string>;
1130 1133
     get(
1131
-      object?: ?Object | ?Array<any>,
1132
-      path?: ?Array<string> | string,
1134
+      object?: ?Object | ?$ReadOnlyArray<any>,
1135
+      path?: ?$ReadOnlyArray<string> | string,
1133 1136
       defaultValue?: any
1134 1137
     ): any;
1135 1138
     has(object: Object, path: Array<string> | string): boolean;
@@ -1724,14 +1727,14 @@ declare module "lodash/fp" {
1724 1727
       array: $ReadOnlyArray<T>
1725 1728
     ): number;
1726 1729
     // alias of _.head
1727
-    first<T>(array: Array<T>): T;
1730
+    first<T>(array: $ReadOnlyArray<T>): T;
1728 1731
     flatten<T, X>(array: Array<Array<T> | X>): Array<T | X>;
1729 1732
     unnest<T, X>(array: Array<Array<T> | X>): Array<T | X>;
1730 1733
     flattenDeep<T>(array: any[]): Array<T>;
1731 1734
     flattenDepth(depth: number): (array: any[]) => any[];
1732 1735
     flattenDepth(depth: number, array: any[]): any[];
1733 1736
     fromPairs<A, B>(pairs: Array<[A, B]>): { [key: A]: B };
1734
-    head<T>(array: Array<T>): T;
1737
+    head<T>(array: $ReadOnlyArray<T>): T;
1735 1738
     indexOf<T>(value: T): (array: Array<T>) => number;
1736 1739
     indexOf<T>(value: T, array: Array<T>): number;
1737 1740
     indexOfFrom<T>(
@@ -1995,18 +1998,18 @@ declare module "lodash/fp" {
1995 1998
     // alias of _.forEach
1996 1999
     each<T>(
1997 2000
       iteratee: Iteratee<T> | OIteratee<T>
1998
-    ): (collection: Array<T> | { [id: any]: T }) => Array<T>;
2001
+    ): (collection: $ReadOnlyArray<T> | { [id: any]: T }) => Array<T>;
1999 2002
     each<T>(
2000 2003
       iteratee: Iteratee<T> | OIteratee<T>,
2001
-      collection: Array<T> | { [id: any]: T }
2004
+      collection: $ReadOnlyArray<T> | { [id: any]: T }
2002 2005
     ): Array<T>;
2003 2006
     // alias of _.forEachRight
2004 2007
     eachRight<T>(
2005 2008
       iteratee: Iteratee<T> | OIteratee<T>
2006
-    ): (collection: Array<T> | { [id: any]: T }) => Array<T>;
2009
+    ): (collection: $ReadOnlyArray<T> | { [id: any]: T }) => Array<T>;
2007 2010
     eachRight<T>(
2008 2011
       iteratee: Iteratee<T> | OIteratee<T>,
2009
-      collection: Array<T> | { [id: any]: T }
2012
+      collection: $ReadOnlyArray<T> | { [id: any]: T }
2010 2013
     ): Array<T>;
2011 2014
     every<T>(
2012 2015
       iteratee: Iteratee<T> | OIteratee<T>
@@ -2110,17 +2113,17 @@ declare module "lodash/fp" {
2110 2113
     ): Array<U>;
2111 2114
     forEach<T>(
2112 2115
       iteratee: Iteratee<T> | OIteratee<T>
2113
-    ): (collection: Array<T> | { [id: any]: T }) => Array<T>;
2116
+    ): (collection: $ReadOnlyArray<T> | { [id: any]: T }) => Array<T>;
2114 2117
     forEach<T>(
2115 2118
       iteratee: Iteratee<T> | OIteratee<T>,
2116
-      collection: Array<T> | { [id: any]: T }
2119
+      collection: $ReadOnlyArray<T> | { [id: any]: T }
2117 2120
     ): Array<T>;
2118 2121
     forEachRight<T>(
2119 2122
       iteratee: Iteratee<T> | OIteratee<T>
2120
-    ): (collection: Array<T> | { [id: any]: T }) => Array<T>;
2123
+    ): (collection: $ReadOnlyArray<T> | { [id: any]: T }) => Array<T>;
2121 2124
     forEachRight<T>(
2122 2125
       iteratee: Iteratee<T> | OIteratee<T>,
2123
-      collection: Array<T> | { [id: any]: T }
2126
+      collection: $ReadOnlyArray<T> | { [id: any]: T }
2124 2127
     ): Array<T>;
2125 2128
     groupBy<V, T>(
2126 2129
       iteratee: ValueOnlyIteratee<T>
@@ -2275,7 +2278,7 @@ declare module "lodash/fp" {
2275 2278
     ): (collection: Array<T> | { [id: any]: T }) => Array<T>;
2276 2279
     sampleSize<T>(n: number, collection: Array<T> | { [id: any]: T }): Array<T>;
2277 2280
     shuffle<T>(collection: Array<T> | { [id: any]: T }): Array<T>;
2278
-    size(collection: Array<any> | Object | string): number;
2281
+    size(collection: $ReadOnlyArray<any> | Object | string): number;
2279 2282
     some<T>(
2280 2283
       predicate: Predicate<T> | OPredicate<T>
2281 2284
     ): (collection: $ReadOnlyArray<T> | { [id: any]: T }) => boolean;
@@ -2768,8 +2771,8 @@ declare module "lodash/fp" {
2768 2771
     forOwnRight(iteratee: OIteratee<*>, object: Object): Object;
2769 2772
     functions(object: Object): Array<string>;
2770 2773
     functionsIn(object: Object): Array<string>;
2771
-    get(path: Array<string> | string): (object: Object | Array<any>) => any;
2772
-    get(path: Array<string> | string, object: Object | Array<any>): any;
2774
+    get(path: $ReadOnlyArray<string> | string): (object: Object | $ReadOnlyArray<any>) => any;
2775
+    get(path: $ReadOnlyArray<string> | string, object: Object | $ReadOnlyArray<any>): any;
2773 2776
     prop(path: Array<string> | string): (object: Object | Array<any>) => any;
2774 2777
     prop(path: Array<string> | string, object: Object | Array<any>): any;
2775 2778
     path(path: Array<string> | string): (object: Object | Array<any>) => any;

+ 329
- 0
flow-typed/npm/moment_v2.3.x.js View File

@@ -0,0 +1,329 @@
1
+// flow-typed signature: c30aa20539f52183d4d30dd36d8ab9c2
2
+// flow-typed version: 886cf7c002/moment_v2.3.x/flow_>=v0.63.x
3
+
4
+type moment$MomentOptions = {
5
+  y?: number | string,
6
+  year?: number | string,
7
+  years?: number | string,
8
+  M?: number | string,
9
+  month?: number | string,
10
+  months?: number | string,
11
+  d?: number | string,
12
+  day?: number | string,
13
+  days?: number | string,
14
+  date?: number | string,
15
+  h?: number | string,
16
+  hour?: number | string,
17
+  hours?: number | string,
18
+  m?: number | string,
19
+  minute?: number | string,
20
+  minutes?: number | string,
21
+  s?: number | string,
22
+  second?: number | string,
23
+  seconds?: number | string,
24
+  ms?: number | string,
25
+  millisecond?: number | string,
26
+  milliseconds?: number | string
27
+};
28
+
29
+type moment$MomentObject = {
30
+  years: number,
31
+  months: number,
32
+  date: number,
33
+  hours: number,
34
+  minutes: number,
35
+  seconds: number,
36
+  milliseconds: number
37
+};
38
+
39
+type moment$MomentCreationData = {
40
+  input: string,
41
+  format: string,
42
+  locale: Object,
43
+  isUTC: boolean,
44
+  strict: boolean
45
+};
46
+
47
+type moment$CalendarFormat = string | ((moment: moment$Moment) => string);
48
+
49
+type moment$CalendarFormats = {
50
+  sameDay?: moment$CalendarFormat,
51
+  nextDay?: moment$CalendarFormat,
52
+  nextWeek?: moment$CalendarFormat,
53
+  lastDay?: moment$CalendarFormat,
54
+  lastWeek?: moment$CalendarFormat,
55
+  sameElse?: moment$CalendarFormat
56
+};
57
+
58
+declare class moment$LocaleData {
59
+  months(moment: moment$Moment): string,
60
+  monthsShort(moment: moment$Moment): string,
61
+  monthsParse(month: string): number,
62
+  weekdays(moment: moment$Moment): string,
63
+  weekdaysShort(moment: moment$Moment): string,
64
+  weekdaysMin(moment: moment$Moment): string,
65
+  weekdaysParse(weekDay: string): number,
66
+  longDateFormat(dateFormat: string): string,
67
+  isPM(date: string): boolean,
68
+  meridiem(hours: number, minutes: number, isLower: boolean): string,
69
+  calendar(
70
+    key:
71
+      | "sameDay"
72
+      | "nextDay"
73
+      | "lastDay"
74
+      | "nextWeek"
75
+      | "prevWeek"
76
+      | "sameElse",
77
+    moment: moment$Moment
78
+  ): string,
79
+  relativeTime(
80
+    number: number,
81
+    withoutSuffix: boolean,
82
+    key: "s" | "m" | "mm" | "h" | "hh" | "d" | "dd" | "M" | "MM" | "y" | "yy",
83
+    isFuture: boolean
84
+  ): string,
85
+  pastFuture(diff: any, relTime: string): string,
86
+  ordinal(number: number): string,
87
+  preparse(str: string): any,
88
+  postformat(str: string): any,
89
+  week(moment: moment$Moment): string,
90
+  invalidDate(): string,
91
+  firstDayOfWeek(): number,
92
+  firstDayOfYear(): number
93
+}
94
+declare class moment$MomentDuration {
95
+  humanize(suffix?: boolean): string,
96
+  milliseconds(): number,
97
+  asMilliseconds(): number,
98
+  seconds(): number,
99
+  asSeconds(): number,
100
+  minutes(): number,
101
+  asMinutes(): number,
102
+  hours(): number,
103
+  asHours(): number,
104
+  days(): number,
105
+  asDays(): number,
106
+  months(): number,
107
+  asMonths(): number,
108
+  years(): number,
109
+  asYears(): number,
110
+  add(value: number | moment$MomentDuration | Object, unit?: string): this,
111
+  subtract(value: number | moment$MomentDuration | Object, unit?: string): this,
112
+  as(unit: string): number,
113
+  get(unit: string): number,
114
+  toJSON(): string,
115
+  toISOString(): string,
116
+  isValid(): boolean
117
+}
118
+declare class moment$Moment {
119
+  static ISO_8601: string,
120
+  static (
121
+    string?: string,
122
+    format?: string | Array<string>,
123
+    strict?: boolean
124
+  ): moment$Moment,
125
+  static (
126
+    string?: string,
127
+    format?: string | Array<string>,
128
+    locale?: string,
129
+    strict?: boolean
130
+  ): moment$Moment,
131
+  static (
132
+    initDate: ?Object | number | Date | Array<number> | moment$Moment | string
133
+  ): moment$Moment,
134
+  static unix(seconds: number): moment$Moment,
135
+  static utc(): moment$Moment,
136
+  static utc(number: number | Array<number>): moment$Moment,
137
+  static utc(
138
+    str: string,
139
+    str2?: string | Array<string>,
140
+    str3?: string
141
+  ): moment$Moment,
142
+  static utc(moment: moment$Moment): moment$Moment,
143
+  static utc(date: Date): moment$Moment,
144
+  static parseZone(): moment$Moment,
145
+  static parseZone(rawDate: string): moment$Moment,
146
+  static parseZone(
147
+    rawDate: string,
148
+    format: string | Array<string>
149
+  ): moment$Moment,
150
+  static parseZone(
151
+    rawDate: string,
152
+    format: string,
153
+    strict: boolean
154
+  ): moment$Moment,
155
+  static parseZone(
156
+    rawDate: string,
157
+    format: string,
158
+    locale: string,
159
+    strict: boolean
160
+  ): moment$Moment,
161
+  isValid(): boolean,
162
+  invalidAt(): 0 | 1 | 2 | 3 | 4 | 5 | 6,
163
+  creationData(): moment$MomentCreationData,
164
+  millisecond(number: number): this,
165
+  milliseconds(number: number): this,
166
+  millisecond(): number,
167
+  milliseconds(): number,
168
+  second(number: number): this,
169
+  seconds(number: number): this,
170
+  second(): number,
171
+  seconds(): number,
172
+  minute(number: number): this,
173
+  minutes(number: number): this,
174
+  minute(): number,
175
+  minutes(): number,
176
+  hour(number: number): this,
177
+  hours(number: number): this,
178
+  hour(): number,
179
+  hours(): number,
180
+  date(number: number): this,
181
+  dates(number: number): this,
182
+  date(): number,
183
+  dates(): number,
184
+  day(day: number | string): this,
185
+  days(day: number | string): this,
186
+  day(): number,
187
+  days(): number,
188
+  weekday(number: number): this,
189
+  weekday(): number,
190
+  isoWeekday(number: number): this,
191
+  isoWeekday(): number,
192
+  dayOfYear(number: number): this,
193
+  dayOfYear(): number,
194
+  week(number: number): this,
195
+  weeks(number: number): this,
196
+  week(): number,
197
+  weeks(): number,
198
+  isoWeek(number: number): this,
199
+  isoWeeks(number: number): this,
200
+  isoWeek(): number,
201
+  isoWeeks(): number,
202
+  month(number: number): this,
203
+  months(number: number): this,
204
+  month(): number,
205
+  months(): number,
206
+  quarter(number: number): this,
207
+  quarter(): number,
208
+  year(number: number): this,
209
+  years(number: number): this,
210
+  year(): number,
211
+  years(): number,
212
+  weekYear(number: number): this,
213
+  weekYear(): number,
214
+  isoWeekYear(number: number): this,
215
+  isoWeekYear(): number,
216
+  weeksInYear(): number,
217
+  isoWeeksInYear(): number,
218
+  get(string: string): number,
219
+  set(unit: string, value: number): this,
220
+  set(options: { [unit: string]: number }): this,
221
+  static max(...dates: Array<moment$Moment>): moment$Moment,
222
+  static max(dates: Array<moment$Moment>): moment$Moment,
223
+  static min(...dates: Array<moment$Moment>): moment$Moment,
224
+  static min(dates: Array<moment$Moment>): moment$Moment,
225
+  add(
226
+    value: number | moment$MomentDuration | moment$Moment | Object,
227
+    unit?: string
228
+  ): this,
229
+  subtract(
230
+    value: number | moment$MomentDuration | moment$Moment | string | Object,
231
+    unit?: string
232
+  ): this,
233
+  startOf(unit: string): this,
234
+  endOf(unit: string): this,
235
+  local(): this,
236
+  utc(): this,
237
+  utcOffset(
238
+    offset: number | string,
239
+    keepLocalTime?: boolean,
240
+    keepMinutes?: boolean
241
+  ): this,
242
+  utcOffset(): number,
243
+  format(format?: string): string,
244
+  fromNow(removeSuffix?: boolean): string,
245
+  from(
246
+    value: moment$Moment | string | number | Date | Array<number>,
247
+    removePrefix?: boolean
248
+  ): string,
249
+  toNow(removePrefix?: boolean): string,
250
+  to(
251
+    value: moment$Moment | string | number | Date | Array<number>,
252
+    removePrefix?: boolean
253
+  ): string,
254
+  calendar(refTime?: any, formats?: moment$CalendarFormats): string,
255
+  diff(
256
+    date: moment$Moment | string | number | Date | Array<number>,
257
+    format?: string,
258
+    floating?: boolean
259
+  ): number,
260
+  valueOf(): number,
261
+  unix(): number,
262
+  daysInMonth(): number,
263
+  toDate(): Date,
264
+  toArray(): Array<number>,
265
+  toJSON(): string,
266
+  toISOString(
267
+    keepOffset?: boolean
268
+  ): string,
269
+  toObject(): moment$MomentObject,
270
+  isBefore(
271
+    date?: moment$Moment | string | number | Date | Array<number>,
272
+    units?: ?string
273
+  ): boolean,
274
+  isSame(
275
+    date?: moment$Moment | string | number | Date | Array<number>,
276
+    units?: ?string
277
+  ): boolean,
278
+  isAfter(
279
+    date?: moment$Moment | string | number | Date | Array<number>,
280
+    units?: ?string
281
+  ): boolean,
282
+  isSameOrBefore(
283
+    date?: moment$Moment | string | number | Date | Array<number>,
284
+    units?: ?string
285
+  ): boolean,
286
+  isSameOrAfter(
287
+    date?: moment$Moment | string | number | Date | Array<number>,
288
+    units?: ?string
289
+  ): boolean,
290
+  isBetween(
291
+    fromDate: moment$Moment | string | number | Date | Array<number>,
292
+    toDate?: ?moment$Moment | string | number | Date | Array<number>,
293
+    granularity?: ?string,
294
+    inclusion?: ?string
295
+  ): boolean,
296
+  isDST(): boolean,
297
+  isDSTShifted(): boolean,
298
+  isLeapYear(): boolean,
299
+  clone(): moment$Moment,
300
+  static isMoment(obj: any): boolean,
301
+  static isDate(obj: any): boolean,
302
+  static locale(locale: string, localeData?: Object): string,
303
+  static updateLocale(locale: string, localeData?: ?Object): void,
304
+  static locale(locales: Array<string>): string,
305
+  locale(locale: string, customization?: Object | null): moment$Moment,
306
+  locale(): string,
307
+  static months(): Array<string>,
308
+  static monthsShort(): Array<string>,
309
+  static weekdays(): Array<string>,
310
+  static weekdaysShort(): Array<string>,
311
+  static weekdaysMin(): Array<string>,
312
+  static months(): string,
313
+  static monthsShort(): string,
314
+  static weekdays(): string,
315
+  static weekdaysShort(): string,
316
+  static weekdaysMin(): string,
317
+  static localeData(key?: string): moment$LocaleData,
318
+  static duration(
319
+    value: number | Object | string,
320
+    unit?: string
321
+  ): moment$MomentDuration,
322
+  static isDuration(obj: any): boolean,
323
+  static normalizeUnits(unit: string): string,
324
+  static invalid(object: any): moment$Moment
325
+}
326
+
327
+declare module "moment" {
328
+  declare module.exports: Class<moment$Moment>;
329
+}

+ 3
- 0
flow-typed/npm/prop-types_v15.x.x.js View File

@@ -1,3 +1,6 @@
1
+// flow-typed signature: d9a983bb1ac458a256c31c139047bdbb
2
+// flow-typed version: 927687984d/prop-types_v15.x.x/flow_>=v0.41.x
3
+
1 4
 type $npm$propTypes$ReactPropsCheckType = (
2 5
   props: any,
3 6
   propName: string,

+ 38
- 0
flow-typed/npm/react-redux_v5.x.x.js View File

@@ -1,3 +1,6 @@
1
+// flow-typed signature: d4e793bc07ef1dc9906a244b12960f7b
2
+// flow-typed version: cf33ff8762/react-redux_v5.x.x/flow_>=v0.63.0
3
+
1 4
 import type { Dispatch, Store } from "redux";
2 5
 
3 6
 declare module "react-redux" {
@@ -130,6 +133,24 @@ declare module "react-redux" {
130 133
     mergeProps: MergeProps<RSP, RDP, MP, RMP>
131 134
   ): (component: Com) => ComponentType<CP & SP & DP & MP>;
132 135
 
136
+  declare export function connect<
137
+    Com: ComponentType<*>,
138
+    A,
139
+    S: Object,
140
+    DP: Object,
141
+    SP: Object,
142
+    RSP: Object,
143
+    RDP: Object,
144
+    MDP: Object,
145
+    MP: Object,
146
+    RMP: Object,
147
+    CP: $Diff<ElementConfig<Com>, RMP>
148
+    >(
149
+    mapStateToProps: MapStateToProps<S, SP, RSP>,
150
+    mapDispatchToProps: MDP,
151
+    mergeProps: MergeProps<RSP, RDP, MP, RMP>
152
+  ): (component: Com) => ComponentType<CP & SP & DP & MP>;
153
+
133 154
   declare export function connect<Com: ComponentType<*>,
134 155
     A,
135 156
     S: Object,
@@ -146,6 +167,23 @@ declare module "react-redux" {
146 167
     options: ConnectOptions<S, SP & DP & MP, RSP, RMP>
147 168
   ): (component: Com) => ComponentType<$Diff<ElementConfig<Com>, RMP> & SP & DP & MP>;
148 169
 
170
+  declare export function connect<Com: ComponentType<*>,
171
+    A,
172
+    S: Object,
173
+    DP: Object,
174
+    SP: Object,
175
+    RSP: Object,
176
+    RDP: Object,
177
+    MDP: Object,
178
+    MP: Object,
179
+    RMP: Object
180
+    >(
181
+    mapStateToProps: ?MapStateToProps<S, SP, RSP>,
182
+    mapDispatchToProps: ?MapDispatchToProps<A, DP, RDP>,
183
+    mergeProps: MDP,
184
+    options: ConnectOptions<S, SP & DP & MP, RSP, RMP>
185
+  ): (component: Com) => ComponentType<$Diff<ElementConfig<Com>, RMP> & SP & DP & MP>;
186
+
149 187
   declare export default {
150 188
     Provider: typeof Provider,
151 189
     createProvider: typeof createProvider,

+ 3
- 0
flow-typed/npm/uuid_v3.x.x.js View File

@@ -1,3 +1,6 @@
1
+// flow-typed signature: 3cf668e64747095cab0bb360cf2fb34f
2
+// flow-typed version: d659bd0cb8/uuid_v3.x.x/flow_>=v0.32.x
3
+
1 4
 declare module "uuid" {
2 5
   declare class uuid {
3 6
     static (

+ 11
- 0
react/features/base/i18n/dateUtil.js View File

@@ -51,6 +51,11 @@ export function getLocalizedDateFormatter(dateOrTimeStamp: Date | number) {
51 51
  * @returns {Object}
52 52
  */
53 53
 export function getLocalizedDurationFormatter(duration: number) {
54
+    // FIXME The flow-type definition of moment is v2.3 while our package.json
55
+    // states v2.19 so maybe locale on moment's duration was introduced in
56
+    // between?
57
+    //
58
+    // $FlowFixMe
54 59
     return moment.duration(duration).locale(_getSupportedLocale());
55 60
 }
56 61
 
@@ -74,6 +79,12 @@ function _getSupportedLocale() {
74 79
                     `^${localeResult[1]}(-)*${`(${localeResult[3]})*` || ''}`);
75 80
 
76 81
             supportedLocale
82
+
83
+                // FIXME The flow-type definition of moment is v2.3 while our
84
+                // package.json states v2.19 so maybe locales on moment was
85
+                // introduced in between?
86
+                //
87
+                // $FlowFixMe
77 88
                 = moment.locales().find(lang => currentLocaleRegexp.exec(lang));
78 89
         }
79 90
     }

Loading…
Cancel
Save