@@ -260,6 +260,7 @@ if (enableCustomElementPropertySupport) {
260
260
}
261
261
262
262
reservedProps . forEach ( name => {
263
+ // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
263
264
properties [ name ] = new PropertyInfoRecord (
264
265
name ,
265
266
RESERVED ,
@@ -279,6 +280,7 @@ reservedProps.forEach(name => {
279
280
[ 'htmlFor' , 'for' ] ,
280
281
[ 'httpEquiv' , 'http-equiv' ] ,
281
282
] . forEach ( ( [ name , attributeName ] ) => {
283
+ // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
282
284
properties [ name ] = new PropertyInfoRecord (
283
285
name ,
284
286
STRING ,
@@ -294,6 +296,7 @@ reservedProps.forEach(name => {
294
296
// In React, we let users pass `true` and `false` even though technically
295
297
// these aren't boolean attributes (they are coerced to strings).
296
298
[ 'contentEditable' , 'draggable' , 'spellCheck' , 'value' ] . forEach ( name => {
299
+ // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
297
300
properties [ name ] = new PropertyInfoRecord (
298
301
name ,
299
302
BOOLEANISH_STRING ,
@@ -315,6 +318,7 @@ reservedProps.forEach(name => {
315
318
'focusable' ,
316
319
'preserveAlpha' ,
317
320
] . forEach ( name => {
321
+ // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
318
322
properties [ name ] = new PropertyInfoRecord (
319
323
name ,
320
324
BOOLEANISH_STRING ,
@@ -355,6 +359,7 @@ reservedProps.forEach(name => {
355
359
// Microdata
356
360
'itemScope' ,
357
361
] . forEach ( name => {
362
+ // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
358
363
properties [ name ] = new PropertyInfoRecord (
359
364
name ,
360
365
BOOLEAN ,
@@ -380,6 +385,7 @@ reservedProps.forEach(name => {
380
385
// you'll need to set attributeName to name.toLowerCase()
381
386
// instead in the assignment below.
382
387
] . forEach ( name => {
388
+ // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
383
389
properties [ name ] = new PropertyInfoRecord (
384
390
name ,
385
391
BOOLEAN ,
@@ -401,6 +407,7 @@ reservedProps.forEach(name => {
401
407
// you'll need to set attributeName to name.toLowerCase()
402
408
// instead in the assignment below.
403
409
] . forEach ( name => {
410
+ // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
404
411
properties [ name ] = new PropertyInfoRecord (
405
412
name ,
406
413
OVERLOADED_BOOLEAN ,
@@ -423,6 +430,7 @@ reservedProps.forEach(name => {
423
430
// you'll need to set attributeName to name.toLowerCase()
424
431
// instead in the assignment below.
425
432
] . forEach ( name => {
433
+ // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
426
434
properties [ name ] = new PropertyInfoRecord (
427
435
name ,
428
436
POSITIVE_NUMERIC ,
@@ -436,6 +444,7 @@ reservedProps.forEach(name => {
436
444
437
445
// These are HTML attributes that must be numbers.
438
446
[ 'rowSpan' , 'start' ] . forEach ( name => {
447
+ // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
439
448
properties [ name ] = new PropertyInfoRecord (
440
449
name ,
441
450
NUMERIC ,
@@ -535,6 +544,7 @@ const capitalize = token => token[1].toUpperCase();
535
544
// instead in the assignment below.
536
545
] . forEach ( attributeName => {
537
546
const name = attributeName . replace ( CAMELIZE , capitalize ) ;
547
+ // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
538
548
properties [ name ] = new PropertyInfoRecord (
539
549
name ,
540
550
STRING ,
@@ -560,6 +570,7 @@ const capitalize = token => token[1].toUpperCase();
560
570
// instead in the assignment below.
561
571
] . forEach ( attributeName => {
562
572
const name = attributeName . replace ( CAMELIZE , capitalize ) ;
573
+ // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
563
574
properties [ name ] = new PropertyInfoRecord (
564
575
name ,
565
576
STRING ,
@@ -582,6 +593,7 @@ const capitalize = token => token[1].toUpperCase();
582
593
// instead in the assignment below.
583
594
] . forEach ( attributeName => {
584
595
const name = attributeName . replace ( CAMELIZE , capitalize ) ;
596
+ // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
585
597
properties [ name ] = new PropertyInfoRecord (
586
598
name ,
587
599
STRING ,
@@ -597,6 +609,7 @@ const capitalize = token => token[1].toUpperCase();
597
609
// The attribute name is case-sensitive in SVG so we can't just use
598
610
// the React name like we do for attributes that exist only in HTML.
599
611
[ 'tabIndex' , 'crossOrigin' ] . forEach ( attributeName => {
612
+ // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
600
613
properties [ attributeName ] = new PropertyInfoRecord (
601
614
attributeName ,
602
615
STRING ,
@@ -611,6 +624,7 @@ const capitalize = token => token[1].toUpperCase();
611
624
// These attributes accept URLs. These must not allow javascript: URLS.
612
625
// These will also need to accept Trusted Types object in the future.
613
626
const xlinkHref = 'xlinkHref' ;
627
+ // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
614
628
properties [ xlinkHref ] = new PropertyInfoRecord (
615
629
'xlinkHref' ,
616
630
STRING ,
@@ -622,6 +636,7 @@ properties[xlinkHref] = new PropertyInfoRecord(
622
636
) ;
623
637
624
638
[ 'src' , 'href' , 'action' , 'formAction' ] . forEach ( attributeName => {
639
+ // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
625
640
properties [ attributeName ] = new PropertyInfoRecord (
626
641
attributeName ,
627
642
STRING ,
0 commit comments