@@ -41,7 +41,8 @@ SomeComponent.___types = {
4141 \\" name\\ " : \\" SomeComponent\\ " ,
4242 \\" type\\ " : null
4343 }
44- } ;"
44+ } ;
45+ SomeComponent.___displayName = \\ "SomeComponent\\ ";"
4546` ;
4647
4748exports [` flow arrow function 1` ] = `
@@ -85,7 +86,8 @@ SomeComponent.___types = {
8586 \\" name\\ " : \\" SomeComponent\\ " ,
8687 \\" type\\ " : null
8788 }
88- } ;"
89+ } ;
90+ SomeComponent.___displayName = \\ "SomeComponent\\ ";"
8991` ;
9092
9193exports [` flow arrow function export default identifier 1` ] = `
@@ -132,7 +134,8 @@ SomeComponent.___types = {
132134 \\" name\\ " : \\" SomeComponent\\ " ,
133135 \\" type\\ " : null
134136 }
135- } ;"
137+ } ;
138+ SomeComponent.___displayName = \\ "SomeComponent\\ ";"
136139` ;
137140
138141exports [` flow arrow function then export 1` ] = `
@@ -179,7 +182,8 @@ SomeComponent.___types = {
179182 \\" name\\ " : \\" SomeComponent\\ " ,
180183 \\" type\\ " : null
181184 }
182- } ;"
185+ } ;
186+ SomeComponent.___displayName = \\ "SomeComponent\\ ";"
183187` ;
184188
185189exports [` flow class 1` ] = `
@@ -226,7 +230,8 @@ SomeComponent.___types = {
226230 \\" name\\ " : \\" SomeComponent\\ " ,
227231 \\" type\\ " : null
228232 }
229- } ;"
233+ } ;
234+ SomeComponent.___displayName = \\"SomeComponent\\";"
230235`;
231236
232237exports[`flow class declaration export default identifier 1`] = `
@@ -276,7 +281,8 @@ SomeComponent.___types = {
276281 \\" name\\ " : \\" SomeComponent\\ " ,
277282 \\" type\\ " : null
278283 }
279- } ;"
284+ } ;
285+ SomeComponent.___displayName = \\"SomeComponent\\";"
280286`;
281287
282288exports[`flow class declaration then export 1`] = `
@@ -326,7 +332,8 @@ SomeComponent.___types = {
326332 \\" name\\ " : \\" SomeComponent\\ " ,
327333 \\" type\\ " : null
328334 }
329- } ;"
335+ } ;
336+ SomeComponent.___displayName = \\"SomeComponent\\";"
330337`;
331338
332339exports[`flow default class 1`] = `
@@ -373,7 +380,56 @@ SomeComponent.___types = {
373380 \\" name\\ " : \\" SomeComponent\\ " ,
374381 \\" type\\ " : null
375382 }
376- } ;"
383+ } ;
384+ SomeComponent.___displayName = \\"SomeComponent\\";"
385+ `;
386+
387+ exports[`flow default export with named identifier 1`] = `
388+ "// @flow
389+ type Props = {
390+ /** this does something */
391+ wow : boolean
392+ } ;
393+
394+ const CustomComponent = (props: Props) => {
395+ return null ;
396+ } ;
397+
398+ export default CustomComponent;
399+ CustomComponent.___types = {
400+ \\" kind\\ " : \\" generic\\ " ,
401+ \\" value\\ " : {
402+ \\" kind\\ " : \\" object\\ " ,
403+ \\" members\\ " : [{
404+ \\" kind\\ " : \\" property\\ " ,
405+ \\" key\\ " : {
406+ \\" kind\\ " : \\" id\\ " ,
407+ \\" name\\ " : \\" wow\\ "
408+ },
409+ \\" value\\ " : {
410+ \\" kind\\ " : \\" boolean\\ "
411+ },
412+ \\" optional\\ " : false ,
413+ \\" leadingComments\\ " : [{
414+ \\" type\\ " : \\" commentBlock\\ " ,
415+ \\" value\\ " : \\" this does something\\ " ,
416+ \\" raw\\ " : \\" * this does something \\ "
417+ }]
418+ }],
419+ \\" leadingComments\\ " : [{
420+ \\" type\\ " : \\" commentLine\\ " ,
421+ \\" value\\ " : \\" @flow\\ " ,
422+ \\" raw\\ " : \\" @flow\\ "
423+ }],
424+ \\" referenceIdName\\ " : \\" Props\\ "
425+ },
426+ \\" name\\ " : {
427+ \\" kind\\ " : \\" id\\ " ,
428+ \\" name\\ " : \\" CustomComponent\\ " ,
429+ \\" type\\ " : null
430+ }
431+ } ;
432+ CustomComponent.___displayName = \\"CustomComponent\\";"
377433`;
378434
379435exports[`flow default function declaration 1`] = `
@@ -420,7 +476,8 @@ SomeComponent.___types = {
420476 \\" name\\ " : \\" SomeComponent\\ " ,
421477 \\" type\\ " : null
422478 }
423- } ;"
479+ } ;
480+ SomeComponent.___displayName = \\"SomeComponent\\";"
424481`;
425482
426483exports[`flow export default function declaration 1`] = `
@@ -465,7 +522,8 @@ SomeComponent.___types = {
465522 \\" name\\ " : \\" SomeComponent\\ " ,
466523 \\" type\\ " : null
467524 }
468- } ;"
525+ } ;
526+ SomeComponent.___displayName = \\"SomeComponent\\";"
469527`;
470528
471529exports[`flow forwardRef 1`] = `
@@ -509,7 +567,8 @@ SomeComponent.___types = {
509567 \\" name\\ " : \\" SomeComponent\\ " ,
510568 \\" type\\ " : null
511569 }
512- } ;"
570+ } ;
571+ SomeComponent.___displayName = \\"SomeComponent\\";"
513572`;
514573
515574exports[`flow forwardRef function expression 1`] = `
@@ -553,7 +612,8 @@ SomeComponent.___types = {
553612 \\" name\\ " : \\" SomeComponent\\ " ,
554613 \\" type\\ " : null
555614 }
556- } ;"
615+ } ;
616+ SomeComponent.___displayName = \\"SomeComponent\\";"
557617`;
558618
559619exports[`flow forwardRef memo arrow function 1`] = `
@@ -597,7 +657,8 @@ SomeComponent.___types = {
597657 \\" name\\ " : \\" SomeComponent\\ " ,
598658 \\" type\\ " : null
599659 }
600- } ;"
660+ } ;
661+ SomeComponent.___displayName = \\"SomeComponent\\";"
601662`;
602663
603664exports[`flow forwardRef memo function expression 1`] = `
@@ -641,7 +702,8 @@ SomeComponent.___types = {
641702 \\" name\\ " : \\" SomeComponent\\ " ,
642703 \\" type\\ " : null
643704 }
644- } ;"
705+ } ;
706+ SomeComponent.___displayName = \\"SomeComponent\\";"
645707`;
646708
647709exports[`flow function declaration 1`] = `
@@ -685,7 +747,8 @@ SomeComponent.___types = {
685747 \\" name\\ " : \\" SomeComponent\\ " ,
686748 \\" type\\ " : null
687749 }
688- } ;"
750+ } ;
751+ SomeComponent.___displayName = \\"SomeComponent\\";"
689752`;
690753
691754exports[`flow memo 1`] = `
@@ -729,7 +792,8 @@ SomeComponent.___types = {
729792 \\" name\\ " : \\" SomeComponent\\ " ,
730793 \\" type\\ " : null
731794 }
732- } ;"
795+ } ;
796+ SomeComponent.___displayName = \\"SomeComponent\\";"
733797`;
734798
735799exports[`typescript default 1`] = `
@@ -754,7 +818,8 @@ SomeComponent.___types = {
754818 \\" name\\ " : \\" SomeComponent\\ " ,
755819 \\" type\\ " : null
756820 }
757- } ;"
821+ } ;
822+ SomeComponent.___displayName = \\"SomeComponent\\";"
758823`;
759824
760825exports[`typescript named 1`] = `
@@ -779,5 +844,6 @@ SomeComponent.___types = {
779844 \\" name\\ " : \\" SomeComponent\\ " ,
780845 \\" type\\ " : null
781846 }
782- } ;"
847+ } ;
848+ SomeComponent.___displayName = \\"SomeComponent\\";"
783849`;
0 commit comments