@@ -260,6 +260,7 @@ if (enableCustomElementPropertySupport) {
260260}
261261
262262reservedProps . forEach ( name => {
263+ // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
263264 properties [ name ] = new PropertyInfoRecord (
264265 name ,
265266 RESERVED ,
@@ -279,6 +280,7 @@ reservedProps.forEach(name => {
279280 [ 'htmlFor' , 'for' ] ,
280281 [ 'httpEquiv' , 'http-equiv' ] ,
281282] . forEach ( ( [ name , attributeName ] ) => {
283+ // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
282284 properties [ name ] = new PropertyInfoRecord (
283285 name ,
284286 STRING ,
@@ -294,6 +296,7 @@ reservedProps.forEach(name => {
294296// In React, we let users pass `true` and `false` even though technically
295297// these aren't boolean attributes (they are coerced to strings).
296298[ 'contentEditable' , 'draggable' , 'spellCheck' , 'value' ] . forEach ( name => {
299+ // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
297300 properties [ name ] = new PropertyInfoRecord (
298301 name ,
299302 BOOLEANISH_STRING ,
@@ -315,6 +318,7 @@ reservedProps.forEach(name => {
315318 'focusable' ,
316319 'preserveAlpha' ,
317320] . forEach ( name => {
321+ // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
318322 properties [ name ] = new PropertyInfoRecord (
319323 name ,
320324 BOOLEANISH_STRING ,
@@ -355,6 +359,7 @@ reservedProps.forEach(name => {
355359 // Microdata
356360 'itemScope' ,
357361] . forEach ( name => {
362+ // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
358363 properties [ name ] = new PropertyInfoRecord (
359364 name ,
360365 BOOLEAN ,
@@ -380,6 +385,7 @@ reservedProps.forEach(name => {
380385 // you'll need to set attributeName to name.toLowerCase()
381386 // instead in the assignment below.
382387] . forEach ( name => {
388+ // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
383389 properties [ name ] = new PropertyInfoRecord (
384390 name ,
385391 BOOLEAN ,
@@ -401,6 +407,7 @@ reservedProps.forEach(name => {
401407 // you'll need to set attributeName to name.toLowerCase()
402408 // instead in the assignment below.
403409] . forEach ( name => {
410+ // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
404411 properties [ name ] = new PropertyInfoRecord (
405412 name ,
406413 OVERLOADED_BOOLEAN ,
@@ -423,6 +430,7 @@ reservedProps.forEach(name => {
423430 // you'll need to set attributeName to name.toLowerCase()
424431 // instead in the assignment below.
425432] . forEach ( name => {
433+ // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
426434 properties [ name ] = new PropertyInfoRecord (
427435 name ,
428436 POSITIVE_NUMERIC ,
@@ -436,6 +444,7 @@ reservedProps.forEach(name => {
436444
437445// These are HTML attributes that must be numbers.
438446[ 'rowSpan' , 'start' ] . forEach ( name => {
447+ // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
439448 properties [ name ] = new PropertyInfoRecord (
440449 name ,
441450 NUMERIC ,
@@ -535,6 +544,7 @@ const capitalize = token => token[1].toUpperCase();
535544 // instead in the assignment below.
536545] . forEach ( attributeName => {
537546 const name = attributeName . replace ( CAMELIZE , capitalize ) ;
547+ // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
538548 properties [ name ] = new PropertyInfoRecord (
539549 name ,
540550 STRING ,
@@ -560,6 +570,7 @@ const capitalize = token => token[1].toUpperCase();
560570 // instead in the assignment below.
561571] . forEach ( attributeName => {
562572 const name = attributeName . replace ( CAMELIZE , capitalize ) ;
573+ // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
563574 properties [ name ] = new PropertyInfoRecord (
564575 name ,
565576 STRING ,
@@ -582,6 +593,7 @@ const capitalize = token => token[1].toUpperCase();
582593 // instead in the assignment below.
583594] . forEach ( attributeName => {
584595 const name = attributeName . replace ( CAMELIZE , capitalize ) ;
596+ // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
585597 properties [ name ] = new PropertyInfoRecord (
586598 name ,
587599 STRING ,
@@ -597,6 +609,7 @@ const capitalize = token => token[1].toUpperCase();
597609// The attribute name is case-sensitive in SVG so we can't just use
598610// the React name like we do for attributes that exist only in HTML.
599611[ 'tabIndex' , 'crossOrigin' ] . forEach ( attributeName => {
612+ // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
600613 properties [ attributeName ] = new PropertyInfoRecord (
601614 attributeName ,
602615 STRING ,
@@ -611,6 +624,7 @@ const capitalize = token => token[1].toUpperCase();
611624// These attributes accept URLs. These must not allow javascript: URLS.
612625// These will also need to accept Trusted Types object in the future.
613626const xlinkHref = 'xlinkHref' ;
627+ // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
614628properties [ xlinkHref ] = new PropertyInfoRecord (
615629 'xlinkHref' ,
616630 STRING ,
@@ -622,6 +636,7 @@ properties[xlinkHref] = new PropertyInfoRecord(
622636) ;
623637
624638[ 'src' , 'href' , 'action' , 'formAction' ] . forEach ( attributeName => {
639+ // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
625640 properties [ attributeName ] = new PropertyInfoRecord (
626641 attributeName ,
627642 STRING ,
0 commit comments