@teambit/schema 0.0.964 → 0.0.966
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mock/button-schemas.json +770 -39
- package/dist/{preview-1674098968766.js → preview-1674531051110.js} +3 -3
- package/dist/schema.main.runtime.js +8 -0
- package/dist/schema.main.runtime.js.map +1 -1
- package/dist/schema.service.js +1 -1
- package/dist/schema.service.js.map +1 -1
- package/mock/button-schemas.json +770 -39
- package/package-tar/teambit-schema-0.0.966.tgz +0 -0
- package/package.json +13 -13
- package/package-tar/teambit-schema-0.0.964.tgz +0 -0
package/mock/button-schemas.json
CHANGED
|
@@ -223,13 +223,14 @@
|
|
|
223
223
|
"signature": "(property) children: ReactNode",
|
|
224
224
|
"isOptional": false,
|
|
225
225
|
"type": {
|
|
226
|
-
"__schema": "
|
|
226
|
+
"__schema": "TypeRefSchema",
|
|
227
227
|
"location": {
|
|
228
228
|
"filePath": "button.tsx",
|
|
229
229
|
"line": 13,
|
|
230
|
-
"character":
|
|
230
|
+
"character": 3
|
|
231
231
|
},
|
|
232
|
-
"name": "ReactNode"
|
|
232
|
+
"name": "ReactNode",
|
|
233
|
+
"packageName": "react"
|
|
233
234
|
},
|
|
234
235
|
"doc": {
|
|
235
236
|
"__schema": "DocSchema",
|
|
@@ -345,7 +346,8 @@
|
|
|
345
346
|
"line": 26,
|
|
346
347
|
"character": 31
|
|
347
348
|
},
|
|
348
|
-
"name": "ButtonProps"
|
|
349
|
+
"name": "ButtonProps",
|
|
350
|
+
"internalFilePath": "button.tsx"
|
|
349
351
|
}
|
|
350
352
|
}
|
|
351
353
|
],
|
|
@@ -626,6 +628,7 @@
|
|
|
626
628
|
}
|
|
627
629
|
}
|
|
628
630
|
],
|
|
631
|
+
"internals": [],
|
|
629
632
|
"namespace": "Compositions"
|
|
630
633
|
},
|
|
631
634
|
{
|
|
@@ -729,7 +732,9 @@
|
|
|
729
732
|
"line": 38,
|
|
730
733
|
"character": 3
|
|
731
734
|
},
|
|
735
|
+
"name": "constructor",
|
|
732
736
|
"signature": "constructor ClassSomething(da: 'dsa'): ClassSomething",
|
|
737
|
+
"modifiers": [],
|
|
733
738
|
"params": [
|
|
734
739
|
{
|
|
735
740
|
"__schema": "ParameterSchema",
|
|
@@ -750,7 +755,15 @@
|
|
|
750
755
|
"name": "'dsa'"
|
|
751
756
|
}
|
|
752
757
|
}
|
|
753
|
-
]
|
|
758
|
+
],
|
|
759
|
+
"returnType": {
|
|
760
|
+
"__schema": "ThisTypeSchema",
|
|
761
|
+
"location": {
|
|
762
|
+
"filePath": "index.ts",
|
|
763
|
+
"line": 36,
|
|
764
|
+
"character": 1
|
|
765
|
+
}
|
|
766
|
+
}
|
|
754
767
|
},
|
|
755
768
|
{
|
|
756
769
|
"__schema": "FunctionLikeSchema",
|
|
@@ -764,13 +777,14 @@
|
|
|
764
777
|
"modifiers": [],
|
|
765
778
|
"params": [],
|
|
766
779
|
"returnType": {
|
|
767
|
-
"__schema": "
|
|
780
|
+
"__schema": "TypeRefSchema",
|
|
768
781
|
"location": {
|
|
769
782
|
"filePath": "index.ts",
|
|
770
783
|
"line": 40,
|
|
771
784
|
"character": 3
|
|
772
785
|
},
|
|
773
|
-
"
|
|
786
|
+
"name": "Foo",
|
|
787
|
+
"internalFilePath": "index.ts"
|
|
774
788
|
}
|
|
775
789
|
},
|
|
776
790
|
{
|
|
@@ -841,12 +855,15 @@
|
|
|
841
855
|
},
|
|
842
856
|
"members": [
|
|
843
857
|
{
|
|
844
|
-
"__schema": "
|
|
858
|
+
"__schema": "FunctionLikeSchema",
|
|
845
859
|
"location": {
|
|
846
860
|
"filePath": "index.ts",
|
|
847
861
|
"line": 52,
|
|
848
862
|
"character": 26
|
|
849
863
|
},
|
|
864
|
+
"name": "",
|
|
865
|
+
"signature": "",
|
|
866
|
+
"modifiers": [],
|
|
850
867
|
"params": [
|
|
851
868
|
{
|
|
852
869
|
"__schema": "ParameterSchema",
|
|
@@ -868,7 +885,7 @@
|
|
|
868
885
|
}
|
|
869
886
|
}
|
|
870
887
|
],
|
|
871
|
-
"
|
|
888
|
+
"returnType": {
|
|
872
889
|
"__schema": "KeywordTypeSchema",
|
|
873
890
|
"location": {
|
|
874
891
|
"filePath": "index.ts",
|
|
@@ -966,14 +983,14 @@
|
|
|
966
983
|
},
|
|
967
984
|
"signature": "const obj: {\n a: number;\n b: number;\n}",
|
|
968
985
|
"type": {
|
|
969
|
-
"__schema": "
|
|
986
|
+
"__schema": "TypeRefSchema",
|
|
970
987
|
"location": {
|
|
971
988
|
"filePath": "index.ts",
|
|
972
989
|
"line": 61,
|
|
973
990
|
"character": 25
|
|
974
991
|
},
|
|
975
|
-
"
|
|
976
|
-
"
|
|
992
|
+
"name": "obj",
|
|
993
|
+
"internalFilePath": "index.ts"
|
|
977
994
|
}
|
|
978
995
|
}
|
|
979
996
|
},
|
|
@@ -1003,14 +1020,14 @@
|
|
|
1003
1020
|
},
|
|
1004
1021
|
"signature": "const obj: {\n a: number;\n b: number;\n}",
|
|
1005
1022
|
"type": {
|
|
1006
|
-
"__schema": "
|
|
1023
|
+
"__schema": "TypeRefSchema",
|
|
1007
1024
|
"location": {
|
|
1008
1025
|
"filePath": "index.ts",
|
|
1009
1026
|
"line": 63,
|
|
1010
1027
|
"character": 41
|
|
1011
1028
|
},
|
|
1012
|
-
"
|
|
1013
|
-
"
|
|
1029
|
+
"name": "obj",
|
|
1030
|
+
"internalFilePath": "index.ts"
|
|
1014
1031
|
}
|
|
1015
1032
|
}
|
|
1016
1033
|
}
|
|
@@ -1042,7 +1059,8 @@
|
|
|
1042
1059
|
"line": 69,
|
|
1043
1060
|
"character": 29
|
|
1044
1061
|
},
|
|
1045
|
-
"name": "Bar"
|
|
1062
|
+
"name": "Bar",
|
|
1063
|
+
"internalFilePath": "index.ts"
|
|
1046
1064
|
}
|
|
1047
1065
|
}
|
|
1048
1066
|
],
|
|
@@ -1053,7 +1071,8 @@
|
|
|
1053
1071
|
"line": 69,
|
|
1054
1072
|
"character": 14
|
|
1055
1073
|
},
|
|
1056
|
-
"name": "Bar"
|
|
1074
|
+
"name": "Bar",
|
|
1075
|
+
"internalFilePath": "index.ts"
|
|
1057
1076
|
}
|
|
1058
1077
|
},
|
|
1059
1078
|
{
|
|
@@ -1234,14 +1253,36 @@
|
|
|
1234
1253
|
"name": "TypeRefWithArgs",
|
|
1235
1254
|
"signature": "type TypeRefWithArgs = T3<T1, T2>",
|
|
1236
1255
|
"type": {
|
|
1237
|
-
"__schema": "
|
|
1256
|
+
"__schema": "TypeRefSchema",
|
|
1238
1257
|
"location": {
|
|
1239
1258
|
"filePath": "index.ts",
|
|
1240
1259
|
"line": 86,
|
|
1241
1260
|
"character": 31
|
|
1242
1261
|
},
|
|
1243
|
-
"
|
|
1244
|
-
"
|
|
1262
|
+
"name": "T3",
|
|
1263
|
+
"internalFilePath": "index.ts",
|
|
1264
|
+
"typeArgs": [
|
|
1265
|
+
{
|
|
1266
|
+
"__schema": "TypeRefSchema",
|
|
1267
|
+
"location": {
|
|
1268
|
+
"filePath": "index.ts",
|
|
1269
|
+
"line": 86,
|
|
1270
|
+
"character": 34
|
|
1271
|
+
},
|
|
1272
|
+
"name": "T1",
|
|
1273
|
+
"internalFilePath": "index.ts"
|
|
1274
|
+
},
|
|
1275
|
+
{
|
|
1276
|
+
"__schema": "TypeRefSchema",
|
|
1277
|
+
"location": {
|
|
1278
|
+
"filePath": "index.ts",
|
|
1279
|
+
"line": 86,
|
|
1280
|
+
"character": 38
|
|
1281
|
+
},
|
|
1282
|
+
"name": "T2",
|
|
1283
|
+
"internalFilePath": "index.ts"
|
|
1284
|
+
}
|
|
1285
|
+
]
|
|
1245
1286
|
}
|
|
1246
1287
|
},
|
|
1247
1288
|
{
|
|
@@ -1276,24 +1317,24 @@
|
|
|
1276
1317
|
},
|
|
1277
1318
|
"types": [
|
|
1278
1319
|
{
|
|
1279
|
-
"__schema": "
|
|
1320
|
+
"__schema": "TypeRefSchema",
|
|
1280
1321
|
"location": {
|
|
1281
1322
|
"filePath": "index.ts",
|
|
1282
1323
|
"line": 88,
|
|
1283
1324
|
"character": 34
|
|
1284
1325
|
},
|
|
1285
|
-
"
|
|
1286
|
-
"
|
|
1326
|
+
"name": "T1",
|
|
1327
|
+
"internalFilePath": "index.ts"
|
|
1287
1328
|
},
|
|
1288
1329
|
{
|
|
1289
|
-
"__schema": "
|
|
1330
|
+
"__schema": "TypeRefSchema",
|
|
1290
1331
|
"location": {
|
|
1291
1332
|
"filePath": "index.ts",
|
|
1292
1333
|
"line": 88,
|
|
1293
1334
|
"character": 39
|
|
1294
1335
|
},
|
|
1295
|
-
"
|
|
1296
|
-
"
|
|
1336
|
+
"name": "T2",
|
|
1337
|
+
"internalFilePath": "index.ts"
|
|
1297
1338
|
}
|
|
1298
1339
|
]
|
|
1299
1340
|
}
|
|
@@ -1554,14 +1595,14 @@
|
|
|
1554
1595
|
"character": 33
|
|
1555
1596
|
},
|
|
1556
1597
|
"objectType": {
|
|
1557
|
-
"__schema": "
|
|
1598
|
+
"__schema": "TypeRefSchema",
|
|
1558
1599
|
"location": {
|
|
1559
1600
|
"filePath": "index.ts",
|
|
1560
1601
|
"line": 106,
|
|
1561
1602
|
"character": 33
|
|
1562
1603
|
},
|
|
1563
|
-
"
|
|
1564
|
-
"
|
|
1604
|
+
"name": "config",
|
|
1605
|
+
"internalFilePath": "index.ts"
|
|
1565
1606
|
},
|
|
1566
1607
|
"indexType": {
|
|
1567
1608
|
"__schema": "LiteralTypeSchema",
|
|
@@ -1593,7 +1634,7 @@
|
|
|
1593
1634
|
"character": 3
|
|
1594
1635
|
},
|
|
1595
1636
|
"name": "[computedName]",
|
|
1596
|
-
"signature": "",
|
|
1637
|
+
"signature": "[computedName]: boolean;",
|
|
1597
1638
|
"isOptional": false,
|
|
1598
1639
|
"type": {
|
|
1599
1640
|
"__schema": "KeywordTypeSchema",
|
|
@@ -1626,7 +1667,7 @@
|
|
|
1626
1667
|
"character": 3
|
|
1627
1668
|
},
|
|
1628
1669
|
"name": "[computedName]",
|
|
1629
|
-
"signature": "",
|
|
1670
|
+
"signature": "[computedName];",
|
|
1630
1671
|
"isOptional": false,
|
|
1631
1672
|
"type": {
|
|
1632
1673
|
"__schema": "InferenceTypeSchema",
|
|
@@ -1667,14 +1708,14 @@
|
|
|
1667
1708
|
},
|
|
1668
1709
|
"literal": " hi ",
|
|
1669
1710
|
"type": {
|
|
1670
|
-
"__schema": "
|
|
1711
|
+
"__schema": "TypeRefSchema",
|
|
1671
1712
|
"location": {
|
|
1672
1713
|
"filePath": "index.ts",
|
|
1673
1714
|
"line": 118,
|
|
1674
1715
|
"character": 44
|
|
1675
1716
|
},
|
|
1676
|
-
"
|
|
1677
|
-
"
|
|
1717
|
+
"name": "World1",
|
|
1718
|
+
"internalFilePath": "index.ts"
|
|
1678
1719
|
}
|
|
1679
1720
|
},
|
|
1680
1721
|
{
|
|
@@ -1686,14 +1727,14 @@
|
|
|
1686
1727
|
},
|
|
1687
1728
|
"literal": "",
|
|
1688
1729
|
"type": {
|
|
1689
|
-
"__schema": "
|
|
1730
|
+
"__schema": "TypeRefSchema",
|
|
1690
1731
|
"location": {
|
|
1691
1732
|
"filePath": "index.ts",
|
|
1692
1733
|
"line": 118,
|
|
1693
1734
|
"character": 57
|
|
1694
1735
|
},
|
|
1695
|
-
"
|
|
1696
|
-
"
|
|
1736
|
+
"name": "World2",
|
|
1737
|
+
"internalFilePath": "index.ts"
|
|
1697
1738
|
}
|
|
1698
1739
|
}
|
|
1699
1740
|
]
|
|
@@ -1892,8 +1933,698 @@
|
|
|
1892
1933
|
"type": "<T>(a: T) => void"
|
|
1893
1934
|
}
|
|
1894
1935
|
}
|
|
1895
|
-
]
|
|
1896
|
-
|
|
1936
|
+
],
|
|
1937
|
+
"internals": [
|
|
1938
|
+
{
|
|
1939
|
+
"__schema": "ClassSchema",
|
|
1940
|
+
"name": "Foo",
|
|
1941
|
+
"location": {
|
|
1942
|
+
"filePath": "index.ts",
|
|
1943
|
+
"line": 34,
|
|
1944
|
+
"character": 1
|
|
1945
|
+
},
|
|
1946
|
+
"signature": "class Foo",
|
|
1947
|
+
"extendsNodes": [],
|
|
1948
|
+
"implementNodes": [],
|
|
1949
|
+
"members": []
|
|
1950
|
+
},
|
|
1951
|
+
{
|
|
1952
|
+
"__schema": "ClassSchema",
|
|
1953
|
+
"name": "ClassSomething",
|
|
1954
|
+
"location": {
|
|
1955
|
+
"filePath": "index.ts",
|
|
1956
|
+
"line": 36,
|
|
1957
|
+
"character": 1
|
|
1958
|
+
},
|
|
1959
|
+
"signature": "class ClassSomething",
|
|
1960
|
+
"extendsNodes": [],
|
|
1961
|
+
"implementNodes": [],
|
|
1962
|
+
"members": [
|
|
1963
|
+
{
|
|
1964
|
+
"__schema": "VariableLikeSchema",
|
|
1965
|
+
"location": {
|
|
1966
|
+
"filePath": "index.ts",
|
|
1967
|
+
"line": 37,
|
|
1968
|
+
"character": 3
|
|
1969
|
+
},
|
|
1970
|
+
"name": "app",
|
|
1971
|
+
"signature": "(property) ClassSomething.app: string",
|
|
1972
|
+
"isOptional": false,
|
|
1973
|
+
"type": {
|
|
1974
|
+
"__schema": "InferenceTypeSchema",
|
|
1975
|
+
"location": {
|
|
1976
|
+
"filePath": "index.ts",
|
|
1977
|
+
"line": 37,
|
|
1978
|
+
"character": 3
|
|
1979
|
+
},
|
|
1980
|
+
"type": "string"
|
|
1981
|
+
}
|
|
1982
|
+
},
|
|
1983
|
+
{
|
|
1984
|
+
"__schema": "ConstructorSchema",
|
|
1985
|
+
"location": {
|
|
1986
|
+
"filePath": "index.ts",
|
|
1987
|
+
"line": 38,
|
|
1988
|
+
"character": 3
|
|
1989
|
+
},
|
|
1990
|
+
"name": "constructor",
|
|
1991
|
+
"signature": "constructor ClassSomething(da: 'dsa'): ClassSomething",
|
|
1992
|
+
"modifiers": [],
|
|
1993
|
+
"params": [
|
|
1994
|
+
{
|
|
1995
|
+
"__schema": "ParameterSchema",
|
|
1996
|
+
"location": {
|
|
1997
|
+
"filePath": "index.ts",
|
|
1998
|
+
"line": 38,
|
|
1999
|
+
"character": 15
|
|
2000
|
+
},
|
|
2001
|
+
"name": "da",
|
|
2002
|
+
"isOptional": false,
|
|
2003
|
+
"type": {
|
|
2004
|
+
"__schema": "LiteralTypeSchema",
|
|
2005
|
+
"location": {
|
|
2006
|
+
"filePath": "index.ts",
|
|
2007
|
+
"line": 38,
|
|
2008
|
+
"character": 28
|
|
2009
|
+
},
|
|
2010
|
+
"name": "'dsa'"
|
|
2011
|
+
}
|
|
2012
|
+
}
|
|
2013
|
+
],
|
|
2014
|
+
"returnType": {
|
|
2015
|
+
"__schema": "ThisTypeSchema",
|
|
2016
|
+
"location": {
|
|
2017
|
+
"filePath": "index.ts",
|
|
2018
|
+
"line": 36,
|
|
2019
|
+
"character": 1
|
|
2020
|
+
}
|
|
2021
|
+
}
|
|
2022
|
+
},
|
|
2023
|
+
{
|
|
2024
|
+
"__schema": "FunctionLikeSchema",
|
|
2025
|
+
"location": {
|
|
2026
|
+
"filePath": "index.ts",
|
|
2027
|
+
"line": 40,
|
|
2028
|
+
"character": 3
|
|
2029
|
+
},
|
|
2030
|
+
"name": "a",
|
|
2031
|
+
"signature": "(method) ClassSomething.a(): Foo",
|
|
2032
|
+
"modifiers": [],
|
|
2033
|
+
"params": [],
|
|
2034
|
+
"returnType": {
|
|
2035
|
+
"__schema": "TypeRefSchema",
|
|
2036
|
+
"location": {
|
|
2037
|
+
"filePath": "index.ts",
|
|
2038
|
+
"line": 40,
|
|
2039
|
+
"character": 3
|
|
2040
|
+
},
|
|
2041
|
+
"name": "Foo",
|
|
2042
|
+
"internalFilePath": "index.ts"
|
|
2043
|
+
}
|
|
2044
|
+
},
|
|
2045
|
+
{
|
|
2046
|
+
"__schema": "GetAccessorSchema",
|
|
2047
|
+
"location": {
|
|
2048
|
+
"filePath": "index.ts",
|
|
2049
|
+
"line": 43,
|
|
2050
|
+
"character": 3
|
|
2051
|
+
},
|
|
2052
|
+
"name": "getter",
|
|
2053
|
+
"signature": "(getter) ClassSomething.getter: string",
|
|
2054
|
+
"type": {
|
|
2055
|
+
"__schema": "InferenceTypeSchema",
|
|
2056
|
+
"location": {
|
|
2057
|
+
"filePath": "index.ts",
|
|
2058
|
+
"line": 43,
|
|
2059
|
+
"character": 3
|
|
2060
|
+
},
|
|
2061
|
+
"type": "string"
|
|
2062
|
+
}
|
|
2063
|
+
},
|
|
2064
|
+
{
|
|
2065
|
+
"__schema": "SetAccessorSchema",
|
|
2066
|
+
"location": {
|
|
2067
|
+
"filePath": "index.ts",
|
|
2068
|
+
"line": 47,
|
|
2069
|
+
"character": 3
|
|
2070
|
+
},
|
|
2071
|
+
"name": "setter",
|
|
2072
|
+
"signature": "(setter) ClassSomething.setter: boolean",
|
|
2073
|
+
"param": {
|
|
2074
|
+
"__schema": "ParameterSchema",
|
|
2075
|
+
"location": {
|
|
2076
|
+
"filePath": "index.ts",
|
|
2077
|
+
"line": 47,
|
|
2078
|
+
"character": 14
|
|
2079
|
+
},
|
|
2080
|
+
"name": "a",
|
|
2081
|
+
"isOptional": false,
|
|
2082
|
+
"type": {
|
|
2083
|
+
"__schema": "KeywordTypeSchema",
|
|
2084
|
+
"location": {
|
|
2085
|
+
"filePath": "index.ts",
|
|
2086
|
+
"line": 47,
|
|
2087
|
+
"character": 17
|
|
2088
|
+
},
|
|
2089
|
+
"name": "boolean"
|
|
2090
|
+
}
|
|
2091
|
+
}
|
|
2092
|
+
}
|
|
2093
|
+
]
|
|
2094
|
+
},
|
|
2095
|
+
{
|
|
2096
|
+
"__schema": "ModuleSchema",
|
|
2097
|
+
"location": {
|
|
2098
|
+
"filePath": "index.ts",
|
|
2099
|
+
"line": 59,
|
|
2100
|
+
"character": 1
|
|
2101
|
+
},
|
|
2102
|
+
"exports": [
|
|
2103
|
+
{
|
|
2104
|
+
"__schema": "VariableLikeSchema",
|
|
2105
|
+
"location": {
|
|
2106
|
+
"filePath": "index.ts",
|
|
2107
|
+
"line": 59,
|
|
2108
|
+
"character": 7
|
|
2109
|
+
},
|
|
2110
|
+
"name": "obj",
|
|
2111
|
+
"signature": "const obj: {\n a: number;\n b: number;\n}",
|
|
2112
|
+
"isOptional": false,
|
|
2113
|
+
"type": {
|
|
2114
|
+
"__schema": "InferenceTypeSchema",
|
|
2115
|
+
"location": {
|
|
2116
|
+
"filePath": "index.ts",
|
|
2117
|
+
"line": 59,
|
|
2118
|
+
"character": 7
|
|
2119
|
+
},
|
|
2120
|
+
"type": "{\n a: number;\n b: number;\n}"
|
|
2121
|
+
}
|
|
2122
|
+
}
|
|
2123
|
+
],
|
|
2124
|
+
"internals": []
|
|
2125
|
+
},
|
|
2126
|
+
{
|
|
2127
|
+
"__schema": "ClassSchema",
|
|
2128
|
+
"name": "Bar",
|
|
2129
|
+
"location": {
|
|
2130
|
+
"filePath": "index.ts",
|
|
2131
|
+
"line": 66,
|
|
2132
|
+
"character": 1
|
|
2133
|
+
},
|
|
2134
|
+
"signature": "class Bar",
|
|
2135
|
+
"extendsNodes": [],
|
|
2136
|
+
"implementNodes": [],
|
|
2137
|
+
"members": [
|
|
2138
|
+
{
|
|
2139
|
+
"__schema": "FunctionLikeSchema",
|
|
2140
|
+
"location": {
|
|
2141
|
+
"filePath": "index.ts",
|
|
2142
|
+
"line": 67,
|
|
2143
|
+
"character": 3
|
|
2144
|
+
},
|
|
2145
|
+
"name": "foo",
|
|
2146
|
+
"signature": "(method) Bar.foo(): void",
|
|
2147
|
+
"modifiers": [],
|
|
2148
|
+
"params": [],
|
|
2149
|
+
"returnType": {
|
|
2150
|
+
"__schema": "InferenceTypeSchema",
|
|
2151
|
+
"location": {
|
|
2152
|
+
"filePath": "index.ts",
|
|
2153
|
+
"line": 67,
|
|
2154
|
+
"character": 3
|
|
2155
|
+
},
|
|
2156
|
+
"type": "void"
|
|
2157
|
+
}
|
|
2158
|
+
}
|
|
2159
|
+
]
|
|
2160
|
+
},
|
|
2161
|
+
{
|
|
2162
|
+
"__schema": "ClassSchema",
|
|
2163
|
+
"name": "T1",
|
|
2164
|
+
"location": {
|
|
2165
|
+
"filePath": "index.ts",
|
|
2166
|
+
"line": 83,
|
|
2167
|
+
"character": 1
|
|
2168
|
+
},
|
|
2169
|
+
"signature": "class T1",
|
|
2170
|
+
"extendsNodes": [],
|
|
2171
|
+
"implementNodes": [],
|
|
2172
|
+
"members": []
|
|
2173
|
+
},
|
|
2174
|
+
{
|
|
2175
|
+
"__schema": "ClassSchema",
|
|
2176
|
+
"name": "T2",
|
|
2177
|
+
"location": {
|
|
2178
|
+
"filePath": "index.ts",
|
|
2179
|
+
"line": 84,
|
|
2180
|
+
"character": 1
|
|
2181
|
+
},
|
|
2182
|
+
"signature": "class T2",
|
|
2183
|
+
"extendsNodes": [],
|
|
2184
|
+
"implementNodes": [],
|
|
2185
|
+
"members": []
|
|
2186
|
+
},
|
|
2187
|
+
{
|
|
2188
|
+
"__schema": "ClassSchema",
|
|
2189
|
+
"name": "T3",
|
|
2190
|
+
"location": {
|
|
2191
|
+
"filePath": "index.ts",
|
|
2192
|
+
"line": 85,
|
|
2193
|
+
"character": 1
|
|
2194
|
+
},
|
|
2195
|
+
"signature": "class T3<T, K>",
|
|
2196
|
+
"typeParams": [
|
|
2197
|
+
"T",
|
|
2198
|
+
"K"
|
|
2199
|
+
],
|
|
2200
|
+
"extendsNodes": [],
|
|
2201
|
+
"implementNodes": [],
|
|
2202
|
+
"members": []
|
|
2203
|
+
},
|
|
2204
|
+
{
|
|
2205
|
+
"__schema": "InterfaceSchema",
|
|
2206
|
+
"location": {
|
|
2207
|
+
"filePath": "index.ts",
|
|
2208
|
+
"line": 103,
|
|
2209
|
+
"character": 1
|
|
2210
|
+
},
|
|
2211
|
+
"name": "config",
|
|
2212
|
+
"signature": "interface config",
|
|
2213
|
+
"extendsNodes": [],
|
|
2214
|
+
"members": [
|
|
2215
|
+
{
|
|
2216
|
+
"__schema": "VariableLikeSchema",
|
|
2217
|
+
"location": {
|
|
2218
|
+
"filePath": "index.ts",
|
|
2219
|
+
"line": 104,
|
|
2220
|
+
"character": 3
|
|
2221
|
+
},
|
|
2222
|
+
"name": "someField",
|
|
2223
|
+
"signature": "(property) config.someField: {\n a: string;\n b: boolean;\n}",
|
|
2224
|
+
"isOptional": false,
|
|
2225
|
+
"type": {
|
|
2226
|
+
"__schema": "TypeLiteralSchema",
|
|
2227
|
+
"location": {
|
|
2228
|
+
"filePath": "index.ts",
|
|
2229
|
+
"line": 104,
|
|
2230
|
+
"character": 14
|
|
2231
|
+
},
|
|
2232
|
+
"members": [
|
|
2233
|
+
{
|
|
2234
|
+
"__schema": "VariableLikeSchema",
|
|
2235
|
+
"location": {
|
|
2236
|
+
"filePath": "index.ts",
|
|
2237
|
+
"line": 104,
|
|
2238
|
+
"character": 16
|
|
2239
|
+
},
|
|
2240
|
+
"name": "a",
|
|
2241
|
+
"signature": "(property) a: string",
|
|
2242
|
+
"isOptional": false,
|
|
2243
|
+
"type": {
|
|
2244
|
+
"__schema": "KeywordTypeSchema",
|
|
2245
|
+
"location": {
|
|
2246
|
+
"filePath": "index.ts",
|
|
2247
|
+
"line": 104,
|
|
2248
|
+
"character": 19
|
|
2249
|
+
},
|
|
2250
|
+
"name": "string"
|
|
2251
|
+
}
|
|
2252
|
+
},
|
|
2253
|
+
{
|
|
2254
|
+
"__schema": "VariableLikeSchema",
|
|
2255
|
+
"location": {
|
|
2256
|
+
"filePath": "index.ts",
|
|
2257
|
+
"line": 104,
|
|
2258
|
+
"character": 27
|
|
2259
|
+
},
|
|
2260
|
+
"name": "b",
|
|
2261
|
+
"signature": "(property) b: boolean",
|
|
2262
|
+
"isOptional": false,
|
|
2263
|
+
"type": {
|
|
2264
|
+
"__schema": "KeywordTypeSchema",
|
|
2265
|
+
"location": {
|
|
2266
|
+
"filePath": "index.ts",
|
|
2267
|
+
"line": 104,
|
|
2268
|
+
"character": 30
|
|
2269
|
+
},
|
|
2270
|
+
"name": "boolean"
|
|
2271
|
+
}
|
|
2272
|
+
}
|
|
2273
|
+
]
|
|
2274
|
+
}
|
|
2275
|
+
}
|
|
2276
|
+
]
|
|
2277
|
+
},
|
|
2278
|
+
{
|
|
2279
|
+
"__schema": "ModuleSchema",
|
|
2280
|
+
"location": {
|
|
2281
|
+
"filePath": "index.ts",
|
|
2282
|
+
"line": 108,
|
|
2283
|
+
"character": 1
|
|
2284
|
+
},
|
|
2285
|
+
"exports": [
|
|
2286
|
+
{
|
|
2287
|
+
"__schema": "VariableLikeSchema",
|
|
2288
|
+
"location": {
|
|
2289
|
+
"filePath": "index.ts",
|
|
2290
|
+
"line": 108,
|
|
2291
|
+
"character": 7
|
|
2292
|
+
},
|
|
2293
|
+
"name": "computedName",
|
|
2294
|
+
"signature": "const computedName: \"str\"",
|
|
2295
|
+
"isOptional": false,
|
|
2296
|
+
"type": {
|
|
2297
|
+
"__schema": "InferenceTypeSchema",
|
|
2298
|
+
"location": {
|
|
2299
|
+
"filePath": "index.ts",
|
|
2300
|
+
"line": 108,
|
|
2301
|
+
"character": 7
|
|
2302
|
+
},
|
|
2303
|
+
"type": "\"str\""
|
|
2304
|
+
}
|
|
2305
|
+
}
|
|
2306
|
+
],
|
|
2307
|
+
"internals": []
|
|
2308
|
+
},
|
|
2309
|
+
{
|
|
2310
|
+
"__schema": "TypeSchema",
|
|
2311
|
+
"location": {
|
|
2312
|
+
"filePath": "index.ts",
|
|
2313
|
+
"line": 116,
|
|
2314
|
+
"character": 1
|
|
2315
|
+
},
|
|
2316
|
+
"name": "World1",
|
|
2317
|
+
"signature": "type World1 = \"world1-a\" | \"world1-b\"",
|
|
2318
|
+
"type": {
|
|
2319
|
+
"__schema": "TypeUnionSchema",
|
|
2320
|
+
"location": {
|
|
2321
|
+
"filePath": "index.ts",
|
|
2322
|
+
"line": 116,
|
|
2323
|
+
"character": 15
|
|
2324
|
+
},
|
|
2325
|
+
"types": [
|
|
2326
|
+
{
|
|
2327
|
+
"__schema": "LiteralTypeSchema",
|
|
2328
|
+
"location": {
|
|
2329
|
+
"filePath": "index.ts",
|
|
2330
|
+
"line": 116,
|
|
2331
|
+
"character": 15
|
|
2332
|
+
},
|
|
2333
|
+
"name": "'world1-a'"
|
|
2334
|
+
},
|
|
2335
|
+
{
|
|
2336
|
+
"__schema": "LiteralTypeSchema",
|
|
2337
|
+
"location": {
|
|
2338
|
+
"filePath": "index.ts",
|
|
2339
|
+
"line": 116,
|
|
2340
|
+
"character": 28
|
|
2341
|
+
},
|
|
2342
|
+
"name": "'world1-b'"
|
|
2343
|
+
}
|
|
2344
|
+
]
|
|
2345
|
+
}
|
|
2346
|
+
},
|
|
2347
|
+
{
|
|
2348
|
+
"__schema": "TypeSchema",
|
|
2349
|
+
"location": {
|
|
2350
|
+
"filePath": "index.ts",
|
|
2351
|
+
"line": 117,
|
|
2352
|
+
"character": 1
|
|
2353
|
+
},
|
|
2354
|
+
"name": "World2",
|
|
2355
|
+
"signature": "type World2 = \"world2\"",
|
|
2356
|
+
"type": {
|
|
2357
|
+
"__schema": "LiteralTypeSchema",
|
|
2358
|
+
"location": {
|
|
2359
|
+
"filePath": "index.ts",
|
|
2360
|
+
"line": 117,
|
|
2361
|
+
"character": 15
|
|
2362
|
+
},
|
|
2363
|
+
"name": "'world2'"
|
|
2364
|
+
}
|
|
2365
|
+
}
|
|
2366
|
+
]
|
|
2367
|
+
},
|
|
2368
|
+
"internals": [
|
|
2369
|
+
{
|
|
2370
|
+
"__schema": "ModuleSchema",
|
|
2371
|
+
"location": {
|
|
2372
|
+
"filePath": "button.tsx",
|
|
2373
|
+
"line": 2,
|
|
2374
|
+
"character": 1
|
|
2375
|
+
},
|
|
2376
|
+
"exports": [
|
|
2377
|
+
{
|
|
2378
|
+
"__schema": "TypeSchema",
|
|
2379
|
+
"location": {
|
|
2380
|
+
"filePath": "button.tsx",
|
|
2381
|
+
"line": 7,
|
|
2382
|
+
"character": 1
|
|
2383
|
+
},
|
|
2384
|
+
"name": "ButtonElementType",
|
|
2385
|
+
"signature": "type ButtonElementType = \"a\" | \"button\"",
|
|
2386
|
+
"type": {
|
|
2387
|
+
"__schema": "TypeUnionSchema",
|
|
2388
|
+
"location": {
|
|
2389
|
+
"filePath": "button.tsx",
|
|
2390
|
+
"line": 7,
|
|
2391
|
+
"character": 33
|
|
2392
|
+
},
|
|
2393
|
+
"types": [
|
|
2394
|
+
{
|
|
2395
|
+
"__schema": "LiteralTypeSchema",
|
|
2396
|
+
"location": {
|
|
2397
|
+
"filePath": "button.tsx",
|
|
2398
|
+
"line": 7,
|
|
2399
|
+
"character": 33
|
|
2400
|
+
},
|
|
2401
|
+
"name": "'a'"
|
|
2402
|
+
},
|
|
2403
|
+
{
|
|
2404
|
+
"__schema": "LiteralTypeSchema",
|
|
2405
|
+
"location": {
|
|
2406
|
+
"filePath": "button.tsx",
|
|
2407
|
+
"line": 7,
|
|
2408
|
+
"character": 39
|
|
2409
|
+
},
|
|
2410
|
+
"name": "'button'"
|
|
2411
|
+
}
|
|
2412
|
+
]
|
|
2413
|
+
}
|
|
2414
|
+
},
|
|
2415
|
+
{
|
|
2416
|
+
"__schema": "TypeSchema",
|
|
2417
|
+
"location": {
|
|
2418
|
+
"filePath": "button.tsx",
|
|
2419
|
+
"line": 9,
|
|
2420
|
+
"character": 1
|
|
2421
|
+
},
|
|
2422
|
+
"name": "ButtonProps",
|
|
2423
|
+
"signature": "type ButtonProps = any",
|
|
2424
|
+
"type": {
|
|
2425
|
+
"__schema": "TypeIntersectionSchema",
|
|
2426
|
+
"location": {
|
|
2427
|
+
"filePath": "button.tsx",
|
|
2428
|
+
"line": 9,
|
|
2429
|
+
"character": 27
|
|
2430
|
+
},
|
|
2431
|
+
"types": [
|
|
2432
|
+
{
|
|
2433
|
+
"__schema": "TypeLiteralSchema",
|
|
2434
|
+
"location": {
|
|
2435
|
+
"filePath": "button.tsx",
|
|
2436
|
+
"line": 9,
|
|
2437
|
+
"character": 27
|
|
2438
|
+
},
|
|
2439
|
+
"members": [
|
|
2440
|
+
{
|
|
2441
|
+
"__schema": "VariableLikeSchema",
|
|
2442
|
+
"location": {
|
|
2443
|
+
"filePath": "button.tsx",
|
|
2444
|
+
"line": 13,
|
|
2445
|
+
"character": 3
|
|
2446
|
+
},
|
|
2447
|
+
"name": "children",
|
|
2448
|
+
"signature": "(property) children: ReactNode",
|
|
2449
|
+
"isOptional": false,
|
|
2450
|
+
"type": {
|
|
2451
|
+
"__schema": "TypeRefSchema",
|
|
2452
|
+
"location": {
|
|
2453
|
+
"filePath": "button.tsx",
|
|
2454
|
+
"line": 13,
|
|
2455
|
+
"character": 3
|
|
2456
|
+
},
|
|
2457
|
+
"name": "ReactNode",
|
|
2458
|
+
"packageName": "react"
|
|
2459
|
+
},
|
|
2460
|
+
"doc": {
|
|
2461
|
+
"__schema": "DocSchema",
|
|
2462
|
+
"location": {
|
|
2463
|
+
"filePath": "button.tsx",
|
|
2464
|
+
"line": 10,
|
|
2465
|
+
"character": 3
|
|
2466
|
+
},
|
|
2467
|
+
"raw": "/**\n * children of the Button.\n */",
|
|
2468
|
+
"comment": "children of the Button."
|
|
2469
|
+
}
|
|
2470
|
+
},
|
|
2471
|
+
{
|
|
2472
|
+
"__schema": "VariableLikeSchema",
|
|
2473
|
+
"location": {
|
|
2474
|
+
"filePath": "button.tsx",
|
|
2475
|
+
"line": 18,
|
|
2476
|
+
"character": 3
|
|
2477
|
+
},
|
|
2478
|
+
"name": "href",
|
|
2479
|
+
"signature": "(property) href?: string",
|
|
2480
|
+
"isOptional": true,
|
|
2481
|
+
"type": {
|
|
2482
|
+
"__schema": "KeywordTypeSchema",
|
|
2483
|
+
"location": {
|
|
2484
|
+
"filePath": "button.tsx",
|
|
2485
|
+
"line": 18,
|
|
2486
|
+
"character": 10
|
|
2487
|
+
},
|
|
2488
|
+
"name": "string"
|
|
2489
|
+
},
|
|
2490
|
+
"doc": {
|
|
2491
|
+
"__schema": "DocSchema",
|
|
2492
|
+
"location": {
|
|
2493
|
+
"filePath": "button.tsx",
|
|
2494
|
+
"line": 15,
|
|
2495
|
+
"character": 3
|
|
2496
|
+
},
|
|
2497
|
+
"raw": "/**\n * link to target page. once href is used, Button is considered an A tag.\n */",
|
|
2498
|
+
"comment": "link to target page. once href is used, Button is considered an A tag."
|
|
2499
|
+
}
|
|
2500
|
+
},
|
|
2501
|
+
{
|
|
2502
|
+
"__schema": "VariableLikeSchema",
|
|
2503
|
+
"location": {
|
|
2504
|
+
"filePath": "button.tsx",
|
|
2505
|
+
"line": 23,
|
|
2506
|
+
"character": 3
|
|
2507
|
+
},
|
|
2508
|
+
"name": "className",
|
|
2509
|
+
"signature": "(property) className?: string",
|
|
2510
|
+
"isOptional": true,
|
|
2511
|
+
"type": {
|
|
2512
|
+
"__schema": "KeywordTypeSchema",
|
|
2513
|
+
"location": {
|
|
2514
|
+
"filePath": "button.tsx",
|
|
2515
|
+
"line": 23,
|
|
2516
|
+
"character": 15
|
|
2517
|
+
},
|
|
2518
|
+
"name": "string"
|
|
2519
|
+
},
|
|
2520
|
+
"doc": {
|
|
2521
|
+
"__schema": "DocSchema",
|
|
2522
|
+
"location": {
|
|
2523
|
+
"filePath": "button.tsx",
|
|
2524
|
+
"line": 20,
|
|
2525
|
+
"character": 3
|
|
2526
|
+
},
|
|
2527
|
+
"raw": "/**\n * class names to inject.\n */",
|
|
2528
|
+
"comment": "class names to inject."
|
|
2529
|
+
}
|
|
2530
|
+
}
|
|
2531
|
+
]
|
|
2532
|
+
},
|
|
2533
|
+
{
|
|
2534
|
+
"__schema": "InferenceTypeSchema",
|
|
2535
|
+
"location": {
|
|
2536
|
+
"filePath": "button.tsx",
|
|
2537
|
+
"line": 24,
|
|
2538
|
+
"character": 5
|
|
2539
|
+
},
|
|
2540
|
+
"name": "React.ButtonHTMLAttributes"
|
|
2541
|
+
}
|
|
2542
|
+
]
|
|
2543
|
+
}
|
|
2544
|
+
},
|
|
2545
|
+
{
|
|
2546
|
+
"__schema": "FunctionLikeSchema",
|
|
2547
|
+
"location": {
|
|
2548
|
+
"filePath": "button.tsx",
|
|
2549
|
+
"line": 26,
|
|
2550
|
+
"character": 1
|
|
2551
|
+
},
|
|
2552
|
+
"name": "Button",
|
|
2553
|
+
"signature": "function Button(props: ButtonProps): any",
|
|
2554
|
+
"modifiers": [
|
|
2555
|
+
"export"
|
|
2556
|
+
],
|
|
2557
|
+
"params": [
|
|
2558
|
+
{
|
|
2559
|
+
"__schema": "ParameterSchema",
|
|
2560
|
+
"location": {
|
|
2561
|
+
"filePath": "button.tsx",
|
|
2562
|
+
"line": 26,
|
|
2563
|
+
"character": 24
|
|
2564
|
+
},
|
|
2565
|
+
"name": "props",
|
|
2566
|
+
"isOptional": false,
|
|
2567
|
+
"type": {
|
|
2568
|
+
"__schema": "TypeRefSchema",
|
|
2569
|
+
"location": {
|
|
2570
|
+
"filePath": "button.tsx",
|
|
2571
|
+
"line": 26,
|
|
2572
|
+
"character": 31
|
|
2573
|
+
},
|
|
2574
|
+
"name": "ButtonProps",
|
|
2575
|
+
"internalFilePath": "button.tsx"
|
|
2576
|
+
}
|
|
2577
|
+
}
|
|
2578
|
+
],
|
|
2579
|
+
"returnType": {
|
|
2580
|
+
"__schema": "InferenceTypeSchema",
|
|
2581
|
+
"location": {
|
|
2582
|
+
"filePath": "button.tsx",
|
|
2583
|
+
"line": 26,
|
|
2584
|
+
"character": 1
|
|
2585
|
+
},
|
|
2586
|
+
"type": "any"
|
|
2587
|
+
}
|
|
2588
|
+
},
|
|
2589
|
+
{
|
|
2590
|
+
"__schema": "ClassSchema",
|
|
2591
|
+
"name": "Bar",
|
|
2592
|
+
"location": {
|
|
2593
|
+
"filePath": "button.tsx",
|
|
2594
|
+
"line": 61,
|
|
2595
|
+
"character": 1
|
|
2596
|
+
},
|
|
2597
|
+
"signature": "class Bar",
|
|
2598
|
+
"extendsNodes": [],
|
|
2599
|
+
"implementNodes": [],
|
|
2600
|
+
"members": [
|
|
2601
|
+
{
|
|
2602
|
+
"__schema": "FunctionLikeSchema",
|
|
2603
|
+
"location": {
|
|
2604
|
+
"filePath": "button.tsx",
|
|
2605
|
+
"line": 62,
|
|
2606
|
+
"character": 3
|
|
2607
|
+
},
|
|
2608
|
+
"name": "foo",
|
|
2609
|
+
"signature": "(method) Bar.foo(): void",
|
|
2610
|
+
"modifiers": [],
|
|
2611
|
+
"params": [],
|
|
2612
|
+
"returnType": {
|
|
2613
|
+
"__schema": "InferenceTypeSchema",
|
|
2614
|
+
"location": {
|
|
2615
|
+
"filePath": "button.tsx",
|
|
2616
|
+
"line": 62,
|
|
2617
|
+
"character": 3
|
|
2618
|
+
},
|
|
2619
|
+
"type": "void"
|
|
2620
|
+
}
|
|
2621
|
+
}
|
|
2622
|
+
]
|
|
2623
|
+
}
|
|
2624
|
+
],
|
|
2625
|
+
"internals": []
|
|
2626
|
+
}
|
|
2627
|
+
],
|
|
1897
2628
|
"componentId": {
|
|
1898
2629
|
"name": "button",
|
|
1899
2630
|
"scope": "org.scope"
|