File tree Expand file tree Collapse file tree 2 files changed +74
-0
lines changed Expand file tree Collapse file tree 2 files changed +74
-0
lines changed Original file line number Diff line number Diff line change @@ -1516,3 +1516,64 @@ Object {
1516
1516
},
1517
1517
}
1518
1518
` ;
1519
+
1520
+ exports [` main fixtures processes component "component_32.js" without errors 1` ] = `
1521
+ Object {
1522
+ " description" : " " ,
1523
+ " displayName" : " Segments" ,
1524
+ " methods" : Array [
1525
+ Object {
1526
+ " docblock" : null ,
1527
+ " modifiers" : Array [],
1528
+ " name" : " foo" ,
1529
+ " params" : Array [
1530
+ Object {
1531
+ " name" : " props" ,
1532
+ " optional" : undefined ,
1533
+ " type" : Object {
1534
+ " alias" : " Props" ,
1535
+ " name" : " signature" ,
1536
+ " raw" : " {
1537
+ segments : Array <T >,
1538
+ }",
1539
+ "signature": Object {
1540
+ " properties" : Array [
1541
+ Object {
1542
+ " key" : " segments" ,
1543
+ " value" : Object {
1544
+ " elements" : Array [
1545
+ Object {
1546
+ " name" : " T" ,
1547
+ },
1548
+ ],
1549
+ " name" : " Array" ,
1550
+ " raw" : " Array<T>" ,
1551
+ " required" : true ,
1552
+ },
1553
+ },
1554
+ ],
1555
+ } ,
1556
+ "type": "object",
1557
+ },
1558
+ },
1559
+ ],
1560
+ "returns": null,
1561
+ },
1562
+ ],
1563
+ "props": Object {
1564
+ " segments" : Object {
1565
+ " description" : " " ,
1566
+ " flowType" : Object {
1567
+ " elements" : Array [
1568
+ Object {
1569
+ " name" : " T" ,
1570
+ },
1571
+ ],
1572
+ " name" : " Array" ,
1573
+ " raw" : " Array<T>" ,
1574
+ },
1575
+ " required" : true ,
1576
+ },
1577
+ } ,
1578
+ }
1579
+ `;
Original file line number Diff line number Diff line change
1
+ import * as React from "react" ;
2
+
3
+ type Props < T > = {
4
+ segments : Array < T > ,
5
+ } ;
6
+
7
+ export default class Segments < T > extends React.Component< Props < T > > {
8
+ render ( ) : React . Node {
9
+ return null ;
10
+ }
11
+
12
+ foo(props: Props< T > ) { }
13
+ }
You can’t perform that action at this time.
0 commit comments