@teambit/schema 0.0.763 → 0.0.766
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/index.d.ts +4 -0
- package/dist/mock/button/index.js.map +1 -1
- package/dist/mock/button-schemas.json +82 -11
- package/mock/button/index.ts +5 -0
- package/mock/button-schemas.json +82 -11
- package/package-tar/teambit-schema-0.0.766.tgz +0 -0
- package/package.json +12 -12
- package/{preview-1655373564849.js → preview-1655695598583.js} +2 -2
- package/package-tar/teambit-schema-0.0.763.tgz +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["myFunc","a","b","Hi","HiThere","Function","Array","Foo","ClassSomething","constructor","da","getter","setter","obj","a1","Bar","foo","getBar","bar","tuple","c","Food","getPromise","T1","T2","T3","typePredicateFn","str","typePredicateNoTypeFn","condition","msg","objectBindingElements","prop","arrayBindingElements","computedName"],"sources":["index.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-function */\n/* eslint-disable @typescript-eslint/no-shadow */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n/* eslint-disable @typescript-eslint/prefer-as-const */\n/* eslint-disable one-var */\n/* eslint-disable max-classes-per-file */\n\n/**\n * General comment of the myFunc\n * @deprecate example of deprecation tag\n * @param a { number } this is A\n * @param b this is B\n * @returns { number } results of adding a to b\n */\nexport function myFunc(a = 4, b = 5): number {\n return a + b;\n}\n\nexport * from './button';\n\nexport function Hi() {}\n\nexport const a = 4,\n b: 5 = 5;\n\nexport * as Compositions from './button.composition';\n\nexport const HiThere = 'HiThere';\n\nexport const Function = () => {};\n\nexport const Array = ['hi', 'there'];\n\nclass Foo {}\n\nclass ClassSomething {\n app = '';\n constructor(readonly da: 'dsa') {}\n\n a() {\n return new Foo();\n }\n get getter() {\n return 'hi';\n }\n\n set setter(a: boolean) {}\n}\n\nexport { ClassSomething };\n\nexport type IndexSig = { [key: string]: boolean };\n\nexport interface Hello {\n propertySig: () => void;\n methodSig(): string;\n}\n\nconst obj = { a: 1, b: 2 };\n\nexport const a1: typeof obj = { a: 5, b: 9 };\n\nexport type TypeOperator = keyof typeof obj;\n\n// this is for Jump in the definition\nclass Bar {\n foo() {}\n}\nexport const getBar = (bar: Bar) => new Bar();\n\nexport const tuple = ([a, b, c]: [string, Function, Record<string, any>]) => {};\n\nexport enum Food {\n Falafel,\n Hummus,\n Tahini,\n}\n\nexport async function getPromise(): Promise<string> {\n return 'promise';\n}\n\nclass T1 {}\nclass T2 {}\nclass T3<T, K> {}\nexport type TypeRefWithArgs = T3<T1, T2>;\n\nexport type ParenthesizedType = (T1 | T2)[];\n\nexport function typePredicateFn(str: any): str is string {\n return str;\n}\n\nexport function typePredicateNoTypeFn(condition: any, msg?: string): asserts condition {}\n\nexport async function objectBindingElements({ prop = 1 }) {\n return prop;\n}\nexport async function arrayBindingElements([prop]: [string]) {\n return prop;\n}\n\ninterface config {\n someField: { a: string; b: boolean };\n}\nexport type IndexedAccessType = config['someField'];\n\nconst computedName = 'str';\nexport interface ComputedNameWithType {\n [computedName]: boolean;\n}\nexport interface ComputedNameNoType {\n [computedName];\n}\n\ntype World1 = 'world1-a' | 'world1-b';\ntype World2 = 'world2';\nexport type templateLiteralType = `hello ${World1} hi ${World2}`;\n\nexport interface CallSignatureWithTypeParams {\n <T>(a: string): T;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA;;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;AAlBA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,MAAT,CAAgBC,CAAC,GAAG,CAApB,EAAuBC,CAAC,GAAG,CAA3B,EAAsC;EAC3C,OAAOD,CAAC,GAAGC,CAAX;AACD;;AAIM,SAASC,EAAT,GAAc,CAAE;;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EAA+CC,GAA/C,EAAgF,CAAE;;AAElF,eAAeC,qBAAf,CAAqC;EAAEC,IAAI,GAAG;AAAT,CAArC,EAAmD;EACxD,OAAOA,IAAP;AACD;;AACM,eAAeC,oBAAf,CAAoC,CAACD,IAAD,CAApC,EAAsD;EAC3D,OAAOA,IAAP;AACD;;AAOD,MAAME,YAAY,GAAG,KAArB"}
|
|
1
|
+
{"version":3,"names":["myFunc","a","b","Hi","HiThere","Function","Array","Foo","ClassSomething","constructor","da","getter","setter","obj","a1","Bar","foo","getBar","bar","tuple","c","Food","getPromise","T1","T2","T3","typePredicateFn","str","typePredicateNoTypeFn","condition","msg","objectBindingElements","prop","arrayBindingElements","computedName"],"sources":["index.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-function */\n/* eslint-disable @typescript-eslint/no-shadow */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n/* eslint-disable @typescript-eslint/prefer-as-const */\n/* eslint-disable one-var */\n/* eslint-disable max-classes-per-file */\n\n/**\n * General comment of the myFunc\n * @deprecate example of deprecation tag\n * @param a { number } this is A\n * @param b this is B\n * @returns { number } results of adding a to b\n */\nexport function myFunc(a = 4, b = 5): number {\n return a + b;\n}\n\nexport * from './button';\n\nexport function Hi() {}\n\nexport const a = 4,\n b: 5 = 5;\n\nexport * as Compositions from './button.composition';\n\nexport const HiThere = 'HiThere';\n\nexport const Function = () => {};\n\nexport const Array = ['hi', 'there'];\n\nclass Foo {}\n\nclass ClassSomething {\n app = '';\n constructor(readonly da: 'dsa') {}\n\n a() {\n return new Foo();\n }\n get getter() {\n return 'hi';\n }\n\n set setter(a: boolean) {}\n}\n\nexport { ClassSomething };\n\nexport type IndexSig = { [key: string]: boolean };\n\nexport interface Hello {\n propertySig: () => void;\n methodSig(): string;\n}\n\nconst obj = { a: 1, b: 2 };\n\nexport const a1: typeof obj = { a: 5, b: 9 };\n\nexport type TypeOperator = keyof typeof obj;\n\n// this is for Jump in the definition\nclass Bar {\n foo() {}\n}\nexport const getBar = (bar: Bar) => new Bar();\n\nexport const tuple = ([a, b, c]: [string, Function, Record<string, any>]) => {};\n\nexport enum Food {\n Falafel,\n Hummus,\n Tahini,\n}\n\nexport async function getPromise(): Promise<string> {\n return 'promise';\n}\n\nclass T1 {}\nclass T2 {}\nclass T3<T, K> {}\nexport type TypeRefWithArgs = T3<T1, T2>;\n\nexport type ParenthesizedType = (T1 | T2)[];\n\nexport function typePredicateFn(str: any): str is string {\n return str;\n}\n\nexport function typePredicateNoTypeFn(condition: any, msg?: string): asserts condition {}\n\nexport async function objectBindingElements({ prop = 1 }) {\n return prop;\n}\nexport async function arrayBindingElements([prop]: [string]) {\n return prop;\n}\n\ninterface config {\n someField: { a: string; b: boolean };\n}\nexport type IndexedAccessType = config['someField'];\n\nconst computedName = 'str';\nexport interface ComputedNameWithType {\n [computedName]: boolean;\n}\nexport interface ComputedNameNoType {\n [computedName];\n}\n\ntype World1 = 'world1-a' | 'world1-b';\ntype World2 = 'world2';\nexport type templateLiteralType = `hello ${World1} hi ${World2}`;\n\nexport interface CallSignatureWithTypeParams {\n <T>(a: string): T;\n}\n\n/**\n * Conditional Generic Type\n */\nexport type If<T, U, Y, N> = T extends U ? Y : N;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA;;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;AAlBA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,MAAT,CAAgBC,CAAC,GAAG,CAApB,EAAuBC,CAAC,GAAG,CAA3B,EAAsC;EAC3C,OAAOD,CAAC,GAAGC,CAAX;AACD;;AAIM,SAASC,EAAT,GAAc,CAAE;;AAEhB,MAAMF,CAAC,GAAG,CAAV;AAAA,MACLC,CAAI,GAAG,CADF;;;AAKA,MAAME,OAAO,GAAG,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,EAAmD;EACxD,OAAOA,IAAP;AACD;;AACM,eAAeC,oBAAf,CAAoC,CAACD,IAAD,CAApC,EAAsD;EAC3D,OAAOA,IAAP;AACD;;AAOD,MAAME,YAAY,GAAG,KAArB"}
|
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
"line": 8,
|
|
84
84
|
"character": 1
|
|
85
85
|
},
|
|
86
|
+
"raw": "/**\n * General comment of the myFunc\n * @deprecate example of deprecation tag\n * @param a { number } this is A\n * @param b this is B\n * @returns { number } results of adding a to b\n */",
|
|
86
87
|
"comment": "General comment of the myFunc",
|
|
87
88
|
"tags": [
|
|
88
89
|
{
|
|
@@ -227,7 +228,8 @@
|
|
|
227
228
|
"filePath": "button.tsx",
|
|
228
229
|
"line": 13,
|
|
229
230
|
"character": 13
|
|
230
|
-
}
|
|
231
|
+
},
|
|
232
|
+
"name": "ReactNode"
|
|
231
233
|
}
|
|
232
234
|
},
|
|
233
235
|
{
|
|
@@ -278,7 +280,8 @@
|
|
|
278
280
|
"filePath": "button.tsx",
|
|
279
281
|
"line": 24,
|
|
280
282
|
"character": 5
|
|
281
|
-
}
|
|
283
|
+
},
|
|
284
|
+
"name": "React.ButtonHTMLAttributes"
|
|
282
285
|
}
|
|
283
286
|
]
|
|
284
287
|
}
|
|
@@ -510,6 +513,7 @@
|
|
|
510
513
|
"line": 10,
|
|
511
514
|
"character": 1
|
|
512
515
|
},
|
|
516
|
+
"raw": "/**\n * example of passing a JSX Element as a parameter\n */",
|
|
513
517
|
"comment": "example of passing a JSX Element as a parameter"
|
|
514
518
|
}
|
|
515
519
|
},
|
|
@@ -917,7 +921,8 @@
|
|
|
917
921
|
"line": 61,
|
|
918
922
|
"character": 25
|
|
919
923
|
},
|
|
920
|
-
"type": "{\n a: number;\n b: number;\n}"
|
|
924
|
+
"type": "{\n a: number;\n b: number;\n}",
|
|
925
|
+
"name": "obj"
|
|
921
926
|
}
|
|
922
927
|
}
|
|
923
928
|
},
|
|
@@ -953,7 +958,8 @@
|
|
|
953
958
|
"line": 63,
|
|
954
959
|
"character": 41
|
|
955
960
|
},
|
|
956
|
-
"type": "{\n a: number;\n b: number;\n}"
|
|
961
|
+
"type": "{\n a: number;\n b: number;\n}",
|
|
962
|
+
"name": "obj"
|
|
957
963
|
}
|
|
958
964
|
}
|
|
959
965
|
}
|
|
@@ -1155,7 +1161,8 @@
|
|
|
1155
1161
|
"line": 86,
|
|
1156
1162
|
"character": 31
|
|
1157
1163
|
},
|
|
1158
|
-
"type": "class T3<T, K>"
|
|
1164
|
+
"type": "class T3<T, K>",
|
|
1165
|
+
"name": "T3"
|
|
1159
1166
|
}
|
|
1160
1167
|
},
|
|
1161
1168
|
{
|
|
@@ -1196,7 +1203,8 @@
|
|
|
1196
1203
|
"line": 88,
|
|
1197
1204
|
"character": 34
|
|
1198
1205
|
},
|
|
1199
|
-
"type": "class T1"
|
|
1206
|
+
"type": "class T1",
|
|
1207
|
+
"name": "T1"
|
|
1200
1208
|
},
|
|
1201
1209
|
{
|
|
1202
1210
|
"__schema": "InferenceTypeSchema",
|
|
@@ -1205,7 +1213,8 @@
|
|
|
1205
1213
|
"line": 88,
|
|
1206
1214
|
"character": 39
|
|
1207
1215
|
},
|
|
1208
|
-
"type": "class T2"
|
|
1216
|
+
"type": "class T2",
|
|
1217
|
+
"name": "T2"
|
|
1209
1218
|
}
|
|
1210
1219
|
]
|
|
1211
1220
|
}
|
|
@@ -1460,7 +1469,8 @@
|
|
|
1460
1469
|
"line": 106,
|
|
1461
1470
|
"character": 33
|
|
1462
1471
|
},
|
|
1463
|
-
"type": "interface config"
|
|
1472
|
+
"type": "interface config",
|
|
1473
|
+
"name": "config"
|
|
1464
1474
|
},
|
|
1465
1475
|
"indexType": {
|
|
1466
1476
|
"__schema": "LiteralTypeSchema",
|
|
@@ -1568,7 +1578,8 @@
|
|
|
1568
1578
|
"line": 118,
|
|
1569
1579
|
"character": 44
|
|
1570
1580
|
},
|
|
1571
|
-
"type": "\"world1-a\" | \"world1-b\""
|
|
1581
|
+
"type": "\"world1-a\" | \"world1-b\"",
|
|
1582
|
+
"name": "World1"
|
|
1572
1583
|
}
|
|
1573
1584
|
},
|
|
1574
1585
|
{
|
|
@@ -1586,7 +1597,8 @@
|
|
|
1586
1597
|
"line": 118,
|
|
1587
1598
|
"character": 57
|
|
1588
1599
|
},
|
|
1589
|
-
"type": "\"world2\""
|
|
1600
|
+
"type": "\"world2\"",
|
|
1601
|
+
"name": "World2"
|
|
1590
1602
|
}
|
|
1591
1603
|
}
|
|
1592
1604
|
]
|
|
@@ -1642,10 +1654,69 @@
|
|
|
1642
1654
|
"line": 121,
|
|
1643
1655
|
"character": 19
|
|
1644
1656
|
},
|
|
1645
|
-
"type": "T"
|
|
1657
|
+
"type": "T",
|
|
1658
|
+
"name": "T"
|
|
1646
1659
|
}
|
|
1647
1660
|
}
|
|
1648
1661
|
]
|
|
1662
|
+
},
|
|
1663
|
+
{
|
|
1664
|
+
"__schema": "TypeSchema",
|
|
1665
|
+
"location": {
|
|
1666
|
+
"filePath": "index.ts",
|
|
1667
|
+
"line": 127,
|
|
1668
|
+
"character": 1
|
|
1669
|
+
},
|
|
1670
|
+
"name": "If",
|
|
1671
|
+
"signature": "type If<T, U, Y, N> = T extends U ? Y : N",
|
|
1672
|
+
"type": {
|
|
1673
|
+
"__schema": "ConditionalTypeSchema",
|
|
1674
|
+
"location": {
|
|
1675
|
+
"filePath": "index.ts",
|
|
1676
|
+
"line": 127,
|
|
1677
|
+
"character": 30
|
|
1678
|
+
},
|
|
1679
|
+
"checkType": {
|
|
1680
|
+
"__schema": "InferenceTypeSchema",
|
|
1681
|
+
"location": {
|
|
1682
|
+
"filePath": "index.ts",
|
|
1683
|
+
"line": 127,
|
|
1684
|
+
"character": 30
|
|
1685
|
+
},
|
|
1686
|
+
"type": "(type parameter) T in type If<T, U, Y, N>",
|
|
1687
|
+
"name": "T"
|
|
1688
|
+
},
|
|
1689
|
+
"extendsType": {
|
|
1690
|
+
"__schema": "InferenceTypeSchema",
|
|
1691
|
+
"location": {
|
|
1692
|
+
"filePath": "index.ts",
|
|
1693
|
+
"line": 127,
|
|
1694
|
+
"character": 40
|
|
1695
|
+
},
|
|
1696
|
+
"type": "(type parameter) U in type If<T, U, Y, N>",
|
|
1697
|
+
"name": "U"
|
|
1698
|
+
},
|
|
1699
|
+
"trueType": {
|
|
1700
|
+
"__schema": "InferenceTypeSchema",
|
|
1701
|
+
"location": {
|
|
1702
|
+
"filePath": "index.ts",
|
|
1703
|
+
"line": 127,
|
|
1704
|
+
"character": 44
|
|
1705
|
+
},
|
|
1706
|
+
"type": "(type parameter) Y in type If<T, U, Y, N>",
|
|
1707
|
+
"name": "Y"
|
|
1708
|
+
},
|
|
1709
|
+
"falseType": {
|
|
1710
|
+
"__schema": "InferenceTypeSchema",
|
|
1711
|
+
"location": {
|
|
1712
|
+
"filePath": "index.ts",
|
|
1713
|
+
"line": 127,
|
|
1714
|
+
"character": 48
|
|
1715
|
+
},
|
|
1716
|
+
"type": "(type parameter) N in type If<T, U, Y, N>",
|
|
1717
|
+
"name": "N"
|
|
1718
|
+
}
|
|
1719
|
+
}
|
|
1649
1720
|
}
|
|
1650
1721
|
]
|
|
1651
1722
|
},
|
package/mock/button/index.ts
CHANGED
package/mock/button-schemas.json
CHANGED
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
"line": 8,
|
|
84
84
|
"character": 1
|
|
85
85
|
},
|
|
86
|
+
"raw": "/**\n * General comment of the myFunc\n * @deprecate example of deprecation tag\n * @param a { number } this is A\n * @param b this is B\n * @returns { number } results of adding a to b\n */",
|
|
86
87
|
"comment": "General comment of the myFunc",
|
|
87
88
|
"tags": [
|
|
88
89
|
{
|
|
@@ -227,7 +228,8 @@
|
|
|
227
228
|
"filePath": "button.tsx",
|
|
228
229
|
"line": 13,
|
|
229
230
|
"character": 13
|
|
230
|
-
}
|
|
231
|
+
},
|
|
232
|
+
"name": "ReactNode"
|
|
231
233
|
}
|
|
232
234
|
},
|
|
233
235
|
{
|
|
@@ -278,7 +280,8 @@
|
|
|
278
280
|
"filePath": "button.tsx",
|
|
279
281
|
"line": 24,
|
|
280
282
|
"character": 5
|
|
281
|
-
}
|
|
283
|
+
},
|
|
284
|
+
"name": "React.ButtonHTMLAttributes"
|
|
282
285
|
}
|
|
283
286
|
]
|
|
284
287
|
}
|
|
@@ -510,6 +513,7 @@
|
|
|
510
513
|
"line": 10,
|
|
511
514
|
"character": 1
|
|
512
515
|
},
|
|
516
|
+
"raw": "/**\n * example of passing a JSX Element as a parameter\n */",
|
|
513
517
|
"comment": "example of passing a JSX Element as a parameter"
|
|
514
518
|
}
|
|
515
519
|
},
|
|
@@ -917,7 +921,8 @@
|
|
|
917
921
|
"line": 61,
|
|
918
922
|
"character": 25
|
|
919
923
|
},
|
|
920
|
-
"type": "{\n a: number;\n b: number;\n}"
|
|
924
|
+
"type": "{\n a: number;\n b: number;\n}",
|
|
925
|
+
"name": "obj"
|
|
921
926
|
}
|
|
922
927
|
}
|
|
923
928
|
},
|
|
@@ -953,7 +958,8 @@
|
|
|
953
958
|
"line": 63,
|
|
954
959
|
"character": 41
|
|
955
960
|
},
|
|
956
|
-
"type": "{\n a: number;\n b: number;\n}"
|
|
961
|
+
"type": "{\n a: number;\n b: number;\n}",
|
|
962
|
+
"name": "obj"
|
|
957
963
|
}
|
|
958
964
|
}
|
|
959
965
|
}
|
|
@@ -1155,7 +1161,8 @@
|
|
|
1155
1161
|
"line": 86,
|
|
1156
1162
|
"character": 31
|
|
1157
1163
|
},
|
|
1158
|
-
"type": "class T3<T, K>"
|
|
1164
|
+
"type": "class T3<T, K>",
|
|
1165
|
+
"name": "T3"
|
|
1159
1166
|
}
|
|
1160
1167
|
},
|
|
1161
1168
|
{
|
|
@@ -1196,7 +1203,8 @@
|
|
|
1196
1203
|
"line": 88,
|
|
1197
1204
|
"character": 34
|
|
1198
1205
|
},
|
|
1199
|
-
"type": "class T1"
|
|
1206
|
+
"type": "class T1",
|
|
1207
|
+
"name": "T1"
|
|
1200
1208
|
},
|
|
1201
1209
|
{
|
|
1202
1210
|
"__schema": "InferenceTypeSchema",
|
|
@@ -1205,7 +1213,8 @@
|
|
|
1205
1213
|
"line": 88,
|
|
1206
1214
|
"character": 39
|
|
1207
1215
|
},
|
|
1208
|
-
"type": "class T2"
|
|
1216
|
+
"type": "class T2",
|
|
1217
|
+
"name": "T2"
|
|
1209
1218
|
}
|
|
1210
1219
|
]
|
|
1211
1220
|
}
|
|
@@ -1460,7 +1469,8 @@
|
|
|
1460
1469
|
"line": 106,
|
|
1461
1470
|
"character": 33
|
|
1462
1471
|
},
|
|
1463
|
-
"type": "interface config"
|
|
1472
|
+
"type": "interface config",
|
|
1473
|
+
"name": "config"
|
|
1464
1474
|
},
|
|
1465
1475
|
"indexType": {
|
|
1466
1476
|
"__schema": "LiteralTypeSchema",
|
|
@@ -1568,7 +1578,8 @@
|
|
|
1568
1578
|
"line": 118,
|
|
1569
1579
|
"character": 44
|
|
1570
1580
|
},
|
|
1571
|
-
"type": "\"world1-a\" | \"world1-b\""
|
|
1581
|
+
"type": "\"world1-a\" | \"world1-b\"",
|
|
1582
|
+
"name": "World1"
|
|
1572
1583
|
}
|
|
1573
1584
|
},
|
|
1574
1585
|
{
|
|
@@ -1586,7 +1597,8 @@
|
|
|
1586
1597
|
"line": 118,
|
|
1587
1598
|
"character": 57
|
|
1588
1599
|
},
|
|
1589
|
-
"type": "\"world2\""
|
|
1600
|
+
"type": "\"world2\"",
|
|
1601
|
+
"name": "World2"
|
|
1590
1602
|
}
|
|
1591
1603
|
}
|
|
1592
1604
|
]
|
|
@@ -1642,10 +1654,69 @@
|
|
|
1642
1654
|
"line": 121,
|
|
1643
1655
|
"character": 19
|
|
1644
1656
|
},
|
|
1645
|
-
"type": "T"
|
|
1657
|
+
"type": "T",
|
|
1658
|
+
"name": "T"
|
|
1646
1659
|
}
|
|
1647
1660
|
}
|
|
1648
1661
|
]
|
|
1662
|
+
},
|
|
1663
|
+
{
|
|
1664
|
+
"__schema": "TypeSchema",
|
|
1665
|
+
"location": {
|
|
1666
|
+
"filePath": "index.ts",
|
|
1667
|
+
"line": 127,
|
|
1668
|
+
"character": 1
|
|
1669
|
+
},
|
|
1670
|
+
"name": "If",
|
|
1671
|
+
"signature": "type If<T, U, Y, N> = T extends U ? Y : N",
|
|
1672
|
+
"type": {
|
|
1673
|
+
"__schema": "ConditionalTypeSchema",
|
|
1674
|
+
"location": {
|
|
1675
|
+
"filePath": "index.ts",
|
|
1676
|
+
"line": 127,
|
|
1677
|
+
"character": 30
|
|
1678
|
+
},
|
|
1679
|
+
"checkType": {
|
|
1680
|
+
"__schema": "InferenceTypeSchema",
|
|
1681
|
+
"location": {
|
|
1682
|
+
"filePath": "index.ts",
|
|
1683
|
+
"line": 127,
|
|
1684
|
+
"character": 30
|
|
1685
|
+
},
|
|
1686
|
+
"type": "(type parameter) T in type If<T, U, Y, N>",
|
|
1687
|
+
"name": "T"
|
|
1688
|
+
},
|
|
1689
|
+
"extendsType": {
|
|
1690
|
+
"__schema": "InferenceTypeSchema",
|
|
1691
|
+
"location": {
|
|
1692
|
+
"filePath": "index.ts",
|
|
1693
|
+
"line": 127,
|
|
1694
|
+
"character": 40
|
|
1695
|
+
},
|
|
1696
|
+
"type": "(type parameter) U in type If<T, U, Y, N>",
|
|
1697
|
+
"name": "U"
|
|
1698
|
+
},
|
|
1699
|
+
"trueType": {
|
|
1700
|
+
"__schema": "InferenceTypeSchema",
|
|
1701
|
+
"location": {
|
|
1702
|
+
"filePath": "index.ts",
|
|
1703
|
+
"line": 127,
|
|
1704
|
+
"character": 44
|
|
1705
|
+
},
|
|
1706
|
+
"type": "(type parameter) Y in type If<T, U, Y, N>",
|
|
1707
|
+
"name": "Y"
|
|
1708
|
+
},
|
|
1709
|
+
"falseType": {
|
|
1710
|
+
"__schema": "InferenceTypeSchema",
|
|
1711
|
+
"location": {
|
|
1712
|
+
"filePath": "index.ts",
|
|
1713
|
+
"line": 127,
|
|
1714
|
+
"character": 48
|
|
1715
|
+
},
|
|
1716
|
+
"type": "(type parameter) N in type If<T, U, Y, N>",
|
|
1717
|
+
"name": "N"
|
|
1718
|
+
}
|
|
1719
|
+
}
|
|
1649
1720
|
}
|
|
1650
1721
|
]
|
|
1651
1722
|
},
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/schema",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.766",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/semantics/schema",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.semantics",
|
|
8
8
|
"name": "schema",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.766"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"p-map-series": "2.1.0",
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
"core-js": "^3.0.0",
|
|
17
17
|
"@teambit/harmony": "0.3.3",
|
|
18
18
|
"@teambit/base-react.navigation.link": "2.0.27",
|
|
19
|
-
"@teambit/semantics.entities.semantic-schema": "0.0.
|
|
20
|
-
"@teambit/builder": "0.0.
|
|
21
|
-
"@teambit/component": "0.0.
|
|
22
|
-
"@teambit/cli": "0.0.
|
|
23
|
-
"@teambit/logger": "0.0.
|
|
24
|
-
"@teambit/envs": "0.0.
|
|
25
|
-
"@teambit/graphql": "0.0.
|
|
19
|
+
"@teambit/semantics.entities.semantic-schema": "0.0.22",
|
|
20
|
+
"@teambit/builder": "0.0.766",
|
|
21
|
+
"@teambit/component": "0.0.766",
|
|
22
|
+
"@teambit/cli": "0.0.506",
|
|
23
|
+
"@teambit/logger": "0.0.599",
|
|
24
|
+
"@teambit/envs": "0.0.766",
|
|
25
|
+
"@teambit/graphql": "0.0.766"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/react": "^17.0.8",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"@teambit/component-id": "0.0.402",
|
|
37
37
|
"@teambit/harmony.testing.load-aspect": "0.0.6",
|
|
38
38
|
"@teambit/workspace.testing.mock-workspace": "0.0.5",
|
|
39
|
-
"@teambit/workspace": "0.0.
|
|
39
|
+
"@teambit/workspace": "0.0.766"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@teambit/legacy": "1.0.
|
|
42
|
+
"@teambit/legacy": "1.0.286",
|
|
43
43
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
44
44
|
"react": "^16.8.0 || ^17.0.0"
|
|
45
45
|
},
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"react": "-"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
|
-
"@teambit/legacy": "1.0.
|
|
70
|
+
"@teambit/legacy": "1.0.286",
|
|
71
71
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
72
72
|
"react": "^16.8.0 || ^17.0.0"
|
|
73
73
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.semantics_schema@0.0.
|
|
2
|
-
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.semantics_schema@0.0.
|
|
1
|
+
export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.semantics_schema@0.0.766/dist/schema.composition.js'), require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.semantics_schema@0.0.766/dist/mock/button/button.composition.js')]
|
|
2
|
+
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.semantics_schema@0.0.766/dist/schema.docs.mdx')]
|
|
Binary file
|