@teambit/schema 0.0.740 → 0.0.743
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 +10 -0
- package/dist/mock/button/index.js +4 -8
- package/dist/mock/button/index.js.map +1 -1
- package/dist/mock/button-schemas.json +234 -103
- package/dist/schema.cmd.d.ts +7 -4
- package/dist/schema.cmd.js +33 -16
- package/dist/schema.cmd.js.map +1 -1
- package/dist/schema.main.runtime.d.ts +4 -2
- package/dist/schema.main.runtime.js +18 -5
- package/dist/schema.main.runtime.js.map +1 -1
- package/dist/schema.spec.js +21 -5
- package/dist/schema.spec.js.map +1 -1
- package/mock/button/index.ts +12 -7
- package/mock/button-schemas.json +234 -103
- package/package-tar/teambit-schema-0.0.743.tgz +0 -0
- package/package.json +14 -12
- package/{preview-1653449228788.js → preview-1653708349111.js} +2 -2
- package/package-tar/teambit-schema-0.0.740.tgz +0 -0
|
@@ -285,7 +285,7 @@
|
|
|
285
285
|
"__schema": "FunctionLikeSchema",
|
|
286
286
|
"location": {
|
|
287
287
|
"file": "index.ts",
|
|
288
|
-
"line":
|
|
288
|
+
"line": 19,
|
|
289
289
|
"character": 1
|
|
290
290
|
},
|
|
291
291
|
"name": "Hi",
|
|
@@ -298,7 +298,7 @@
|
|
|
298
298
|
"__schema": "InferenceTypeSchema",
|
|
299
299
|
"location": {
|
|
300
300
|
"file": "index.ts",
|
|
301
|
-
"line":
|
|
301
|
+
"line": 19,
|
|
302
302
|
"character": 1
|
|
303
303
|
},
|
|
304
304
|
"type": "void"
|
|
@@ -308,7 +308,7 @@
|
|
|
308
308
|
"__schema": "VariableSchema",
|
|
309
309
|
"location": {
|
|
310
310
|
"file": "index.ts",
|
|
311
|
-
"line":
|
|
311
|
+
"line": 21,
|
|
312
312
|
"character": 14
|
|
313
313
|
},
|
|
314
314
|
"name": "a",
|
|
@@ -317,7 +317,7 @@
|
|
|
317
317
|
"__schema": "InferenceTypeSchema",
|
|
318
318
|
"location": {
|
|
319
319
|
"file": "index.ts",
|
|
320
|
-
"line":
|
|
320
|
+
"line": 21,
|
|
321
321
|
"character": 14
|
|
322
322
|
},
|
|
323
323
|
"type": "4"
|
|
@@ -327,7 +327,7 @@
|
|
|
327
327
|
"__schema": "VariableSchema",
|
|
328
328
|
"location": {
|
|
329
329
|
"file": "index.ts",
|
|
330
|
-
"line":
|
|
330
|
+
"line": 22,
|
|
331
331
|
"character": 3
|
|
332
332
|
},
|
|
333
333
|
"name": "b",
|
|
@@ -336,7 +336,7 @@
|
|
|
336
336
|
"__schema": "LiteralTypeSchema",
|
|
337
337
|
"location": {
|
|
338
338
|
"file": "index.ts",
|
|
339
|
-
"line":
|
|
339
|
+
"line": 22,
|
|
340
340
|
"character": 6
|
|
341
341
|
},
|
|
342
342
|
"name": "5"
|
|
@@ -441,7 +441,7 @@
|
|
|
441
441
|
"__schema": "VariableSchema",
|
|
442
442
|
"location": {
|
|
443
443
|
"file": "index.ts",
|
|
444
|
-
"line":
|
|
444
|
+
"line": 26,
|
|
445
445
|
"character": 14
|
|
446
446
|
},
|
|
447
447
|
"name": "HiThere",
|
|
@@ -450,7 +450,7 @@
|
|
|
450
450
|
"__schema": "InferenceTypeSchema",
|
|
451
451
|
"location": {
|
|
452
452
|
"file": "index.ts",
|
|
453
|
-
"line":
|
|
453
|
+
"line": 26,
|
|
454
454
|
"character": 14
|
|
455
455
|
},
|
|
456
456
|
"type": "\"HiThere\""
|
|
@@ -460,7 +460,7 @@
|
|
|
460
460
|
"__schema": "FunctionLikeSchema",
|
|
461
461
|
"location": {
|
|
462
462
|
"file": "index.ts",
|
|
463
|
-
"line":
|
|
463
|
+
"line": 28,
|
|
464
464
|
"character": 14
|
|
465
465
|
},
|
|
466
466
|
"name": "Function",
|
|
@@ -471,7 +471,7 @@
|
|
|
471
471
|
"__schema": "InferenceTypeSchema",
|
|
472
472
|
"location": {
|
|
473
473
|
"file": "index.ts",
|
|
474
|
-
"line":
|
|
474
|
+
"line": 28,
|
|
475
475
|
"character": 14
|
|
476
476
|
},
|
|
477
477
|
"type": "void"
|
|
@@ -481,7 +481,7 @@
|
|
|
481
481
|
"__schema": "VariableSchema",
|
|
482
482
|
"location": {
|
|
483
483
|
"file": "index.ts",
|
|
484
|
-
"line":
|
|
484
|
+
"line": 30,
|
|
485
485
|
"character": 14
|
|
486
486
|
},
|
|
487
487
|
"name": "Array",
|
|
@@ -490,7 +490,7 @@
|
|
|
490
490
|
"__schema": "TypeRefSchema",
|
|
491
491
|
"location": {
|
|
492
492
|
"file": "index.ts",
|
|
493
|
-
"line":
|
|
493
|
+
"line": 30,
|
|
494
494
|
"character": 14
|
|
495
495
|
},
|
|
496
496
|
"name": "string[]",
|
|
@@ -502,7 +502,7 @@
|
|
|
502
502
|
"className": "ClassSomething",
|
|
503
503
|
"location": {
|
|
504
504
|
"file": "index.ts",
|
|
505
|
-
"line":
|
|
505
|
+
"line": 34,
|
|
506
506
|
"character": 1
|
|
507
507
|
},
|
|
508
508
|
"members": [
|
|
@@ -510,7 +510,7 @@
|
|
|
510
510
|
"__schema": "VariableSchema",
|
|
511
511
|
"location": {
|
|
512
512
|
"file": "index.ts",
|
|
513
|
-
"line":
|
|
513
|
+
"line": 35,
|
|
514
514
|
"character": 3
|
|
515
515
|
},
|
|
516
516
|
"name": "app",
|
|
@@ -519,7 +519,7 @@
|
|
|
519
519
|
"__schema": "InferenceTypeSchema",
|
|
520
520
|
"location": {
|
|
521
521
|
"file": "index.ts",
|
|
522
|
-
"line":
|
|
522
|
+
"line": 35,
|
|
523
523
|
"character": 3
|
|
524
524
|
},
|
|
525
525
|
"type": "string"
|
|
@@ -529,7 +529,7 @@
|
|
|
529
529
|
"__schema": "ConstructorSchema",
|
|
530
530
|
"location": {
|
|
531
531
|
"file": "index.ts",
|
|
532
|
-
"line":
|
|
532
|
+
"line": 36,
|
|
533
533
|
"character": 3
|
|
534
534
|
},
|
|
535
535
|
"params": [
|
|
@@ -537,7 +537,7 @@
|
|
|
537
537
|
"__schema": "ParameterSchema",
|
|
538
538
|
"location": {
|
|
539
539
|
"file": "index.ts",
|
|
540
|
-
"line":
|
|
540
|
+
"line": 36,
|
|
541
541
|
"character": 15
|
|
542
542
|
},
|
|
543
543
|
"name": "da",
|
|
@@ -545,7 +545,7 @@
|
|
|
545
545
|
"__schema": "LiteralTypeSchema",
|
|
546
546
|
"location": {
|
|
547
547
|
"file": "index.ts",
|
|
548
|
-
"line":
|
|
548
|
+
"line": 36,
|
|
549
549
|
"character": 28
|
|
550
550
|
},
|
|
551
551
|
"name": "'dsa'"
|
|
@@ -557,7 +557,7 @@
|
|
|
557
557
|
"__schema": "FunctionLikeSchema",
|
|
558
558
|
"location": {
|
|
559
559
|
"file": "index.ts",
|
|
560
|
-
"line":
|
|
560
|
+
"line": 38,
|
|
561
561
|
"character": 3
|
|
562
562
|
},
|
|
563
563
|
"name": "a",
|
|
@@ -568,7 +568,7 @@
|
|
|
568
568
|
"__schema": "InferenceTypeSchema",
|
|
569
569
|
"location": {
|
|
570
570
|
"file": "index.ts",
|
|
571
|
-
"line":
|
|
571
|
+
"line": 38,
|
|
572
572
|
"character": 3
|
|
573
573
|
},
|
|
574
574
|
"type": "Foo"
|
|
@@ -578,7 +578,7 @@
|
|
|
578
578
|
"__schema": "GetAccessorSchema",
|
|
579
579
|
"location": {
|
|
580
580
|
"file": "index.ts",
|
|
581
|
-
"line":
|
|
581
|
+
"line": 41,
|
|
582
582
|
"character": 3
|
|
583
583
|
},
|
|
584
584
|
"name": "getter",
|
|
@@ -587,7 +587,7 @@
|
|
|
587
587
|
"__schema": "InferenceTypeSchema",
|
|
588
588
|
"location": {
|
|
589
589
|
"file": "index.ts",
|
|
590
|
-
"line":
|
|
590
|
+
"line": 41,
|
|
591
591
|
"character": 3
|
|
592
592
|
},
|
|
593
593
|
"type": "string"
|
|
@@ -597,7 +597,7 @@
|
|
|
597
597
|
"__schema": "SetAccessorSchema",
|
|
598
598
|
"location": {
|
|
599
599
|
"file": "index.ts",
|
|
600
|
-
"line":
|
|
600
|
+
"line": 45,
|
|
601
601
|
"character": 3
|
|
602
602
|
},
|
|
603
603
|
"name": "setter",
|
|
@@ -606,7 +606,7 @@
|
|
|
606
606
|
"__schema": "ParameterSchema",
|
|
607
607
|
"location": {
|
|
608
608
|
"file": "index.ts",
|
|
609
|
-
"line":
|
|
609
|
+
"line": 45,
|
|
610
610
|
"character": 14
|
|
611
611
|
},
|
|
612
612
|
"name": "a",
|
|
@@ -614,7 +614,7 @@
|
|
|
614
614
|
"__schema": "KeywordTypeSchema",
|
|
615
615
|
"location": {
|
|
616
616
|
"file": "index.ts",
|
|
617
|
-
"line":
|
|
617
|
+
"line": 45,
|
|
618
618
|
"character": 17
|
|
619
619
|
},
|
|
620
620
|
"name": "boolean"
|
|
@@ -627,7 +627,7 @@
|
|
|
627
627
|
"__schema": "TypeSchema",
|
|
628
628
|
"location": {
|
|
629
629
|
"file": "index.ts",
|
|
630
|
-
"line":
|
|
630
|
+
"line": 50,
|
|
631
631
|
"character": 1
|
|
632
632
|
},
|
|
633
633
|
"name": "IndexSig",
|
|
@@ -636,7 +636,7 @@
|
|
|
636
636
|
"__schema": "TypeLiteralSchema",
|
|
637
637
|
"location": {
|
|
638
638
|
"file": "index.ts",
|
|
639
|
-
"line":
|
|
639
|
+
"line": 50,
|
|
640
640
|
"character": 24
|
|
641
641
|
},
|
|
642
642
|
"members": [
|
|
@@ -644,7 +644,7 @@
|
|
|
644
644
|
"__schema": "IndexSignatureSchema",
|
|
645
645
|
"location": {
|
|
646
646
|
"file": "index.ts",
|
|
647
|
-
"line":
|
|
647
|
+
"line": 50,
|
|
648
648
|
"character": 26
|
|
649
649
|
},
|
|
650
650
|
"params": [
|
|
@@ -652,7 +652,7 @@
|
|
|
652
652
|
"__schema": "ParameterSchema",
|
|
653
653
|
"location": {
|
|
654
654
|
"file": "index.ts",
|
|
655
|
-
"line":
|
|
655
|
+
"line": 50,
|
|
656
656
|
"character": 27
|
|
657
657
|
},
|
|
658
658
|
"name": "key",
|
|
@@ -660,7 +660,7 @@
|
|
|
660
660
|
"__schema": "KeywordTypeSchema",
|
|
661
661
|
"location": {
|
|
662
662
|
"file": "index.ts",
|
|
663
|
-
"line":
|
|
663
|
+
"line": 50,
|
|
664
664
|
"character": 32
|
|
665
665
|
},
|
|
666
666
|
"name": "string"
|
|
@@ -671,7 +671,7 @@
|
|
|
671
671
|
"__schema": "KeywordTypeSchema",
|
|
672
672
|
"location": {
|
|
673
673
|
"file": "index.ts",
|
|
674
|
-
"line":
|
|
674
|
+
"line": 50,
|
|
675
675
|
"character": 41
|
|
676
676
|
},
|
|
677
677
|
"name": "boolean"
|
|
@@ -684,37 +684,47 @@
|
|
|
684
684
|
"__schema": "InterfaceSchema",
|
|
685
685
|
"location": {
|
|
686
686
|
"file": "index.ts",
|
|
687
|
-
"line":
|
|
687
|
+
"line": 52,
|
|
688
688
|
"character": 1
|
|
689
689
|
},
|
|
690
690
|
"name": "Hello",
|
|
691
691
|
"members": [
|
|
692
692
|
{
|
|
693
|
-
"__schema": "
|
|
693
|
+
"__schema": "VariableSchema",
|
|
694
694
|
"location": {
|
|
695
695
|
"file": "index.ts",
|
|
696
|
-
"line":
|
|
697
|
-
"character":
|
|
696
|
+
"line": 53,
|
|
697
|
+
"character": 3
|
|
698
698
|
},
|
|
699
|
-
"name": "",
|
|
700
|
-
"signature": "",
|
|
701
|
-
"
|
|
702
|
-
|
|
703
|
-
"returnType": {
|
|
704
|
-
"__schema": "KeywordTypeSchema",
|
|
699
|
+
"name": "propertySig",
|
|
700
|
+
"signature": "(property) Hello.propertySig: () => void",
|
|
701
|
+
"type": {
|
|
702
|
+
"__schema": "FunctionLikeSchema",
|
|
705
703
|
"location": {
|
|
706
704
|
"file": "index.ts",
|
|
707
|
-
"line":
|
|
708
|
-
"character":
|
|
705
|
+
"line": 53,
|
|
706
|
+
"character": 16
|
|
709
707
|
},
|
|
710
|
-
"name": "
|
|
708
|
+
"name": "",
|
|
709
|
+
"signature": "",
|
|
710
|
+
"modifiers": [],
|
|
711
|
+
"params": [],
|
|
712
|
+
"returnType": {
|
|
713
|
+
"__schema": "KeywordTypeSchema",
|
|
714
|
+
"location": {
|
|
715
|
+
"file": "index.ts",
|
|
716
|
+
"line": 53,
|
|
717
|
+
"character": 22
|
|
718
|
+
},
|
|
719
|
+
"name": "void"
|
|
720
|
+
}
|
|
711
721
|
}
|
|
712
722
|
},
|
|
713
723
|
{
|
|
714
724
|
"__schema": "FunctionLikeSchema",
|
|
715
725
|
"location": {
|
|
716
726
|
"file": "index.ts",
|
|
717
|
-
"line":
|
|
727
|
+
"line": 54,
|
|
718
728
|
"character": 3
|
|
719
729
|
},
|
|
720
730
|
"name": "methodSig",
|
|
@@ -725,7 +735,7 @@
|
|
|
725
735
|
"__schema": "KeywordTypeSchema",
|
|
726
736
|
"location": {
|
|
727
737
|
"file": "index.ts",
|
|
728
|
-
"line":
|
|
738
|
+
"line": 54,
|
|
729
739
|
"character": 16
|
|
730
740
|
},
|
|
731
741
|
"name": "string"
|
|
@@ -737,7 +747,7 @@
|
|
|
737
747
|
"__schema": "VariableSchema",
|
|
738
748
|
"location": {
|
|
739
749
|
"file": "index.ts",
|
|
740
|
-
"line":
|
|
750
|
+
"line": 59,
|
|
741
751
|
"character": 14
|
|
742
752
|
},
|
|
743
753
|
"name": "a1",
|
|
@@ -746,7 +756,7 @@
|
|
|
746
756
|
"__schema": "TypeQuerySchema",
|
|
747
757
|
"location": {
|
|
748
758
|
"file": "index.ts",
|
|
749
|
-
"line":
|
|
759
|
+
"line": 59,
|
|
750
760
|
"character": 18
|
|
751
761
|
},
|
|
752
762
|
"signature": "const obj: {\n a: number;\n b: number;\n}",
|
|
@@ -754,7 +764,7 @@
|
|
|
754
764
|
"__schema": "InferenceTypeSchema",
|
|
755
765
|
"location": {
|
|
756
766
|
"file": "index.ts",
|
|
757
|
-
"line":
|
|
767
|
+
"line": 59,
|
|
758
768
|
"character": 25
|
|
759
769
|
},
|
|
760
770
|
"type": "{\n a: number;\n b: number;\n}"
|
|
@@ -765,7 +775,7 @@
|
|
|
765
775
|
"__schema": "TypeSchema",
|
|
766
776
|
"location": {
|
|
767
777
|
"file": "index.ts",
|
|
768
|
-
"line":
|
|
778
|
+
"line": 61,
|
|
769
779
|
"character": 1
|
|
770
780
|
},
|
|
771
781
|
"name": "TypeOperator",
|
|
@@ -774,7 +784,7 @@
|
|
|
774
784
|
"__schema": "TypeOperatorSchema",
|
|
775
785
|
"location": {
|
|
776
786
|
"file": "index.ts",
|
|
777
|
-
"line":
|
|
787
|
+
"line": 61,
|
|
778
788
|
"character": 28
|
|
779
789
|
},
|
|
780
790
|
"operatorName": "keyof",
|
|
@@ -782,7 +792,7 @@
|
|
|
782
792
|
"__schema": "TypeQuerySchema",
|
|
783
793
|
"location": {
|
|
784
794
|
"file": "index.ts",
|
|
785
|
-
"line":
|
|
795
|
+
"line": 61,
|
|
786
796
|
"character": 34
|
|
787
797
|
},
|
|
788
798
|
"signature": "const obj: {\n a: number;\n b: number;\n}",
|
|
@@ -790,7 +800,7 @@
|
|
|
790
800
|
"__schema": "InferenceTypeSchema",
|
|
791
801
|
"location": {
|
|
792
802
|
"file": "index.ts",
|
|
793
|
-
"line":
|
|
803
|
+
"line": 61,
|
|
794
804
|
"character": 41
|
|
795
805
|
},
|
|
796
806
|
"type": "{\n a: number;\n b: number;\n}"
|
|
@@ -802,7 +812,7 @@
|
|
|
802
812
|
"__schema": "FunctionLikeSchema",
|
|
803
813
|
"location": {
|
|
804
814
|
"file": "index.ts",
|
|
805
|
-
"line":
|
|
815
|
+
"line": 67,
|
|
806
816
|
"character": 14
|
|
807
817
|
},
|
|
808
818
|
"name": "getBar",
|
|
@@ -813,7 +823,7 @@
|
|
|
813
823
|
"__schema": "ParameterSchema",
|
|
814
824
|
"location": {
|
|
815
825
|
"file": "index.ts",
|
|
816
|
-
"line":
|
|
826
|
+
"line": 67,
|
|
817
827
|
"character": 24
|
|
818
828
|
},
|
|
819
829
|
"name": "bar",
|
|
@@ -821,7 +831,7 @@
|
|
|
821
831
|
"__schema": "TypeRefSchema",
|
|
822
832
|
"location": {
|
|
823
833
|
"file": "index.ts",
|
|
824
|
-
"line":
|
|
834
|
+
"line": 67,
|
|
825
835
|
"character": 29
|
|
826
836
|
},
|
|
827
837
|
"name": "Bar"
|
|
@@ -832,7 +842,7 @@
|
|
|
832
842
|
"__schema": "TypeRefSchema",
|
|
833
843
|
"location": {
|
|
834
844
|
"file": "index.ts",
|
|
835
|
-
"line":
|
|
845
|
+
"line": 67,
|
|
836
846
|
"character": 14
|
|
837
847
|
},
|
|
838
848
|
"name": "Bar"
|
|
@@ -842,7 +852,7 @@
|
|
|
842
852
|
"__schema": "FunctionLikeSchema",
|
|
843
853
|
"location": {
|
|
844
854
|
"file": "index.ts",
|
|
845
|
-
"line":
|
|
855
|
+
"line": 69,
|
|
846
856
|
"character": 14
|
|
847
857
|
},
|
|
848
858
|
"name": "tuple",
|
|
@@ -853,7 +863,7 @@
|
|
|
853
863
|
"__schema": "ParameterSchema",
|
|
854
864
|
"location": {
|
|
855
865
|
"file": "index.ts",
|
|
856
|
-
"line":
|
|
866
|
+
"line": 69,
|
|
857
867
|
"character": 23
|
|
858
868
|
},
|
|
859
869
|
"name": "[ a, b, c ]",
|
|
@@ -861,7 +871,7 @@
|
|
|
861
871
|
"__schema": "TupleTypeSchema",
|
|
862
872
|
"location": {
|
|
863
873
|
"file": "index.ts",
|
|
864
|
-
"line":
|
|
874
|
+
"line": 69,
|
|
865
875
|
"character": 34
|
|
866
876
|
},
|
|
867
877
|
"elements": [
|
|
@@ -869,7 +879,7 @@
|
|
|
869
879
|
"__schema": "KeywordTypeSchema",
|
|
870
880
|
"location": {
|
|
871
881
|
"file": "index.ts",
|
|
872
|
-
"line":
|
|
882
|
+
"line": 69,
|
|
873
883
|
"character": 35
|
|
874
884
|
},
|
|
875
885
|
"name": "string"
|
|
@@ -878,7 +888,7 @@
|
|
|
878
888
|
"__schema": "TypeRefSchema",
|
|
879
889
|
"location": {
|
|
880
890
|
"file": "index.ts",
|
|
881
|
-
"line":
|
|
891
|
+
"line": 69,
|
|
882
892
|
"character": 43
|
|
883
893
|
},
|
|
884
894
|
"name": "Function"
|
|
@@ -887,7 +897,7 @@
|
|
|
887
897
|
"__schema": "TypeRefSchema",
|
|
888
898
|
"location": {
|
|
889
899
|
"file": "index.ts",
|
|
890
|
-
"line":
|
|
900
|
+
"line": 69,
|
|
891
901
|
"character": 53
|
|
892
902
|
},
|
|
893
903
|
"name": "Record",
|
|
@@ -897,7 +907,7 @@
|
|
|
897
907
|
"__schema": "KeywordTypeSchema",
|
|
898
908
|
"location": {
|
|
899
909
|
"file": "index.ts",
|
|
900
|
-
"line":
|
|
910
|
+
"line": 69,
|
|
901
911
|
"character": 60
|
|
902
912
|
},
|
|
903
913
|
"name": "string"
|
|
@@ -906,7 +916,7 @@
|
|
|
906
916
|
"__schema": "KeywordTypeSchema",
|
|
907
917
|
"location": {
|
|
908
918
|
"file": "index.ts",
|
|
909
|
-
"line":
|
|
919
|
+
"line": 69,
|
|
910
920
|
"character": 68
|
|
911
921
|
},
|
|
912
922
|
"name": "any"
|
|
@@ -921,7 +931,7 @@
|
|
|
921
931
|
"__schema": "InferenceTypeSchema",
|
|
922
932
|
"location": {
|
|
923
933
|
"file": "index.ts",
|
|
924
|
-
"line":
|
|
934
|
+
"line": 69,
|
|
925
935
|
"character": 14
|
|
926
936
|
},
|
|
927
937
|
"type": "void"
|
|
@@ -931,7 +941,7 @@
|
|
|
931
941
|
"__schema": "EnumSchema",
|
|
932
942
|
"location": {
|
|
933
943
|
"file": "index.ts",
|
|
934
|
-
"line":
|
|
944
|
+
"line": 71,
|
|
935
945
|
"character": 1
|
|
936
946
|
},
|
|
937
947
|
"name": "Food",
|
|
@@ -945,7 +955,7 @@
|
|
|
945
955
|
"__schema": "FunctionLikeSchema",
|
|
946
956
|
"location": {
|
|
947
957
|
"file": "index.ts",
|
|
948
|
-
"line":
|
|
958
|
+
"line": 77,
|
|
949
959
|
"character": 1
|
|
950
960
|
},
|
|
951
961
|
"name": "getPromise",
|
|
@@ -959,7 +969,7 @@
|
|
|
959
969
|
"__schema": "TypeRefSchema",
|
|
960
970
|
"location": {
|
|
961
971
|
"file": "index.ts",
|
|
962
|
-
"line":
|
|
972
|
+
"line": 77,
|
|
963
973
|
"character": 37
|
|
964
974
|
},
|
|
965
975
|
"name": "Promise",
|
|
@@ -969,7 +979,7 @@
|
|
|
969
979
|
"__schema": "KeywordTypeSchema",
|
|
970
980
|
"location": {
|
|
971
981
|
"file": "index.ts",
|
|
972
|
-
"line":
|
|
982
|
+
"line": 77,
|
|
973
983
|
"character": 45
|
|
974
984
|
},
|
|
975
985
|
"name": "string"
|
|
@@ -981,7 +991,7 @@
|
|
|
981
991
|
"__schema": "TypeSchema",
|
|
982
992
|
"location": {
|
|
983
993
|
"file": "index.ts",
|
|
984
|
-
"line":
|
|
994
|
+
"line": 84,
|
|
985
995
|
"character": 1
|
|
986
996
|
},
|
|
987
997
|
"name": "TypeRefWithArgs",
|
|
@@ -990,7 +1000,7 @@
|
|
|
990
1000
|
"__schema": "InferenceTypeSchema",
|
|
991
1001
|
"location": {
|
|
992
1002
|
"file": "index.ts",
|
|
993
|
-
"line":
|
|
1003
|
+
"line": 84,
|
|
994
1004
|
"character": 31
|
|
995
1005
|
},
|
|
996
1006
|
"type": "class T3<T, K>"
|
|
@@ -1000,7 +1010,7 @@
|
|
|
1000
1010
|
"__schema": "TypeSchema",
|
|
1001
1011
|
"location": {
|
|
1002
1012
|
"file": "index.ts",
|
|
1003
|
-
"line":
|
|
1013
|
+
"line": 86,
|
|
1004
1014
|
"character": 1
|
|
1005
1015
|
},
|
|
1006
1016
|
"name": "ParenthesizedType",
|
|
@@ -1009,21 +1019,21 @@
|
|
|
1009
1019
|
"__schema": "TypeArraySchema",
|
|
1010
1020
|
"location": {
|
|
1011
1021
|
"file": "index.ts",
|
|
1012
|
-
"line":
|
|
1022
|
+
"line": 86,
|
|
1013
1023
|
"character": 33
|
|
1014
1024
|
},
|
|
1015
1025
|
"type": {
|
|
1016
1026
|
"__schema": "ParenthesizedTypeSchema",
|
|
1017
1027
|
"location": {
|
|
1018
1028
|
"file": "index.ts",
|
|
1019
|
-
"line":
|
|
1029
|
+
"line": 86,
|
|
1020
1030
|
"character": 33
|
|
1021
1031
|
},
|
|
1022
1032
|
"type": {
|
|
1023
1033
|
"__schema": "TypeUnionSchema",
|
|
1024
1034
|
"location": {
|
|
1025
1035
|
"file": "index.ts",
|
|
1026
|
-
"line":
|
|
1036
|
+
"line": 86,
|
|
1027
1037
|
"character": 34
|
|
1028
1038
|
},
|
|
1029
1039
|
"types": [
|
|
@@ -1031,7 +1041,7 @@
|
|
|
1031
1041
|
"__schema": "InferenceTypeSchema",
|
|
1032
1042
|
"location": {
|
|
1033
1043
|
"file": "index.ts",
|
|
1034
|
-
"line":
|
|
1044
|
+
"line": 86,
|
|
1035
1045
|
"character": 34
|
|
1036
1046
|
},
|
|
1037
1047
|
"type": "class T1"
|
|
@@ -1040,7 +1050,7 @@
|
|
|
1040
1050
|
"__schema": "InferenceTypeSchema",
|
|
1041
1051
|
"location": {
|
|
1042
1052
|
"file": "index.ts",
|
|
1043
|
-
"line":
|
|
1053
|
+
"line": 86,
|
|
1044
1054
|
"character": 39
|
|
1045
1055
|
},
|
|
1046
1056
|
"type": "class T2"
|
|
@@ -1054,7 +1064,7 @@
|
|
|
1054
1064
|
"__schema": "FunctionLikeSchema",
|
|
1055
1065
|
"location": {
|
|
1056
1066
|
"file": "index.ts",
|
|
1057
|
-
"line":
|
|
1067
|
+
"line": 88,
|
|
1058
1068
|
"character": 1
|
|
1059
1069
|
},
|
|
1060
1070
|
"name": "typePredicateFn",
|
|
@@ -1067,7 +1077,7 @@
|
|
|
1067
1077
|
"__schema": "ParameterSchema",
|
|
1068
1078
|
"location": {
|
|
1069
1079
|
"file": "index.ts",
|
|
1070
|
-
"line":
|
|
1080
|
+
"line": 88,
|
|
1071
1081
|
"character": 33
|
|
1072
1082
|
},
|
|
1073
1083
|
"name": "str",
|
|
@@ -1075,7 +1085,7 @@
|
|
|
1075
1085
|
"__schema": "KeywordTypeSchema",
|
|
1076
1086
|
"location": {
|
|
1077
1087
|
"file": "index.ts",
|
|
1078
|
-
"line":
|
|
1088
|
+
"line": 88,
|
|
1079
1089
|
"character": 38
|
|
1080
1090
|
},
|
|
1081
1091
|
"name": "any"
|
|
@@ -1086,7 +1096,7 @@
|
|
|
1086
1096
|
"__schema": "TypePredicateSchema",
|
|
1087
1097
|
"location": {
|
|
1088
1098
|
"file": "index.ts",
|
|
1089
|
-
"line":
|
|
1099
|
+
"line": 88,
|
|
1090
1100
|
"character": 44
|
|
1091
1101
|
},
|
|
1092
1102
|
"parameterName": "str",
|
|
@@ -1095,7 +1105,7 @@
|
|
|
1095
1105
|
"__schema": "KeywordTypeSchema",
|
|
1096
1106
|
"location": {
|
|
1097
1107
|
"file": "index.ts",
|
|
1098
|
-
"line":
|
|
1108
|
+
"line": 88,
|
|
1099
1109
|
"character": 51
|
|
1100
1110
|
},
|
|
1101
1111
|
"name": "string"
|
|
@@ -1106,7 +1116,7 @@
|
|
|
1106
1116
|
"__schema": "FunctionLikeSchema",
|
|
1107
1117
|
"location": {
|
|
1108
1118
|
"file": "index.ts",
|
|
1109
|
-
"line":
|
|
1119
|
+
"line": 92,
|
|
1110
1120
|
"character": 1
|
|
1111
1121
|
},
|
|
1112
1122
|
"name": "typePredicateNoTypeFn",
|
|
@@ -1119,7 +1129,7 @@
|
|
|
1119
1129
|
"__schema": "ParameterSchema",
|
|
1120
1130
|
"location": {
|
|
1121
1131
|
"file": "index.ts",
|
|
1122
|
-
"line":
|
|
1132
|
+
"line": 92,
|
|
1123
1133
|
"character": 39
|
|
1124
1134
|
},
|
|
1125
1135
|
"name": "condition",
|
|
@@ -1127,7 +1137,7 @@
|
|
|
1127
1137
|
"__schema": "KeywordTypeSchema",
|
|
1128
1138
|
"location": {
|
|
1129
1139
|
"file": "index.ts",
|
|
1130
|
-
"line":
|
|
1140
|
+
"line": 92,
|
|
1131
1141
|
"character": 50
|
|
1132
1142
|
},
|
|
1133
1143
|
"name": "any"
|
|
@@ -1137,7 +1147,7 @@
|
|
|
1137
1147
|
"__schema": "ParameterSchema",
|
|
1138
1148
|
"location": {
|
|
1139
1149
|
"file": "index.ts",
|
|
1140
|
-
"line":
|
|
1150
|
+
"line": 92,
|
|
1141
1151
|
"character": 55
|
|
1142
1152
|
},
|
|
1143
1153
|
"name": "msg",
|
|
@@ -1145,7 +1155,7 @@
|
|
|
1145
1155
|
"__schema": "KeywordTypeSchema",
|
|
1146
1156
|
"location": {
|
|
1147
1157
|
"file": "index.ts",
|
|
1148
|
-
"line":
|
|
1158
|
+
"line": 92,
|
|
1149
1159
|
"character": 61
|
|
1150
1160
|
},
|
|
1151
1161
|
"name": "string"
|
|
@@ -1156,7 +1166,7 @@
|
|
|
1156
1166
|
"__schema": "TypePredicateSchema",
|
|
1157
1167
|
"location": {
|
|
1158
1168
|
"file": "index.ts",
|
|
1159
|
-
"line":
|
|
1169
|
+
"line": 92,
|
|
1160
1170
|
"character": 70
|
|
1161
1171
|
},
|
|
1162
1172
|
"parameterName": "condition",
|
|
@@ -1167,7 +1177,7 @@
|
|
|
1167
1177
|
"__schema": "FunctionLikeSchema",
|
|
1168
1178
|
"location": {
|
|
1169
1179
|
"file": "index.ts",
|
|
1170
|
-
"line":
|
|
1180
|
+
"line": 94,
|
|
1171
1181
|
"character": 1
|
|
1172
1182
|
},
|
|
1173
1183
|
"name": "objectBindingElements",
|
|
@@ -1181,7 +1191,7 @@
|
|
|
1181
1191
|
"__schema": "ParameterSchema",
|
|
1182
1192
|
"location": {
|
|
1183
1193
|
"file": "index.ts",
|
|
1184
|
-
"line":
|
|
1194
|
+
"line": 94,
|
|
1185
1195
|
"character": 45
|
|
1186
1196
|
},
|
|
1187
1197
|
"name": "{ prop = 1 }",
|
|
@@ -1189,7 +1199,7 @@
|
|
|
1189
1199
|
"__schema": "TypeLiteralSchema",
|
|
1190
1200
|
"location": {
|
|
1191
1201
|
"file": "index.ts",
|
|
1192
|
-
"line":
|
|
1202
|
+
"line": 94,
|
|
1193
1203
|
"character": 45
|
|
1194
1204
|
},
|
|
1195
1205
|
"members": [
|
|
@@ -1197,7 +1207,7 @@
|
|
|
1197
1207
|
"__schema": "InferenceTypeSchema",
|
|
1198
1208
|
"location": {
|
|
1199
1209
|
"file": "index.ts",
|
|
1200
|
-
"line":
|
|
1210
|
+
"line": 94,
|
|
1201
1211
|
"character": 45
|
|
1202
1212
|
},
|
|
1203
1213
|
"type": "number",
|
|
@@ -1211,7 +1221,7 @@
|
|
|
1211
1221
|
"__schema": "InferenceTypeSchema",
|
|
1212
1222
|
"location": {
|
|
1213
1223
|
"file": "index.ts",
|
|
1214
|
-
"line":
|
|
1224
|
+
"line": 94,
|
|
1215
1225
|
"character": 1
|
|
1216
1226
|
},
|
|
1217
1227
|
"type": "Promise<number>"
|
|
@@ -1221,7 +1231,7 @@
|
|
|
1221
1231
|
"__schema": "FunctionLikeSchema",
|
|
1222
1232
|
"location": {
|
|
1223
1233
|
"file": "index.ts",
|
|
1224
|
-
"line":
|
|
1234
|
+
"line": 97,
|
|
1225
1235
|
"character": 1
|
|
1226
1236
|
},
|
|
1227
1237
|
"name": "arrayBindingElements",
|
|
@@ -1235,7 +1245,7 @@
|
|
|
1235
1245
|
"__schema": "ParameterSchema",
|
|
1236
1246
|
"location": {
|
|
1237
1247
|
"file": "index.ts",
|
|
1238
|
-
"line":
|
|
1248
|
+
"line": 97,
|
|
1239
1249
|
"character": 44
|
|
1240
1250
|
},
|
|
1241
1251
|
"name": "[ prop ]",
|
|
@@ -1243,7 +1253,7 @@
|
|
|
1243
1253
|
"__schema": "TupleTypeSchema",
|
|
1244
1254
|
"location": {
|
|
1245
1255
|
"file": "index.ts",
|
|
1246
|
-
"line":
|
|
1256
|
+
"line": 97,
|
|
1247
1257
|
"character": 52
|
|
1248
1258
|
},
|
|
1249
1259
|
"elements": [
|
|
@@ -1251,7 +1261,7 @@
|
|
|
1251
1261
|
"__schema": "KeywordTypeSchema",
|
|
1252
1262
|
"location": {
|
|
1253
1263
|
"file": "index.ts",
|
|
1254
|
-
"line":
|
|
1264
|
+
"line": 97,
|
|
1255
1265
|
"character": 53
|
|
1256
1266
|
},
|
|
1257
1267
|
"name": "string"
|
|
@@ -1264,7 +1274,7 @@
|
|
|
1264
1274
|
"__schema": "InferenceTypeSchema",
|
|
1265
1275
|
"location": {
|
|
1266
1276
|
"file": "index.ts",
|
|
1267
|
-
"line":
|
|
1277
|
+
"line": 97,
|
|
1268
1278
|
"character": 1
|
|
1269
1279
|
},
|
|
1270
1280
|
"type": "Promise<string>"
|
|
@@ -1274,7 +1284,7 @@
|
|
|
1274
1284
|
"__schema": "TypeSchema",
|
|
1275
1285
|
"location": {
|
|
1276
1286
|
"file": "index.ts",
|
|
1277
|
-
"line":
|
|
1287
|
+
"line": 104,
|
|
1278
1288
|
"character": 1
|
|
1279
1289
|
},
|
|
1280
1290
|
"name": "IndexedAccessType",
|
|
@@ -1283,14 +1293,14 @@
|
|
|
1283
1293
|
"__schema": "IndexedAccessSchema",
|
|
1284
1294
|
"location": {
|
|
1285
1295
|
"file": "index.ts",
|
|
1286
|
-
"line":
|
|
1296
|
+
"line": 104,
|
|
1287
1297
|
"character": 33
|
|
1288
1298
|
},
|
|
1289
1299
|
"objectType": {
|
|
1290
1300
|
"__schema": "InferenceTypeSchema",
|
|
1291
1301
|
"location": {
|
|
1292
1302
|
"file": "index.ts",
|
|
1293
|
-
"line":
|
|
1303
|
+
"line": 104,
|
|
1294
1304
|
"character": 33
|
|
1295
1305
|
},
|
|
1296
1306
|
"type": "interface config"
|
|
@@ -1299,13 +1309,134 @@
|
|
|
1299
1309
|
"__schema": "LiteralTypeSchema",
|
|
1300
1310
|
"location": {
|
|
1301
1311
|
"file": "index.ts",
|
|
1302
|
-
"line":
|
|
1312
|
+
"line": 104,
|
|
1303
1313
|
"character": 40
|
|
1304
1314
|
},
|
|
1305
1315
|
"name": "'someField'"
|
|
1306
1316
|
}
|
|
1307
1317
|
}
|
|
1318
|
+
},
|
|
1319
|
+
{
|
|
1320
|
+
"__schema": "InterfaceSchema",
|
|
1321
|
+
"location": {
|
|
1322
|
+
"file": "index.ts",
|
|
1323
|
+
"line": 107,
|
|
1324
|
+
"character": 1
|
|
1325
|
+
},
|
|
1326
|
+
"name": "ComputedNameWithType",
|
|
1327
|
+
"members": [
|
|
1328
|
+
{
|
|
1329
|
+
"__schema": "VariableSchema",
|
|
1330
|
+
"location": {
|
|
1331
|
+
"file": "index.ts",
|
|
1332
|
+
"line": 108,
|
|
1333
|
+
"character": 3
|
|
1334
|
+
},
|
|
1335
|
+
"name": "[computedName]",
|
|
1336
|
+
"signature": "",
|
|
1337
|
+
"type": {
|
|
1338
|
+
"__schema": "KeywordTypeSchema",
|
|
1339
|
+
"location": {
|
|
1340
|
+
"file": "index.ts",
|
|
1341
|
+
"line": 108,
|
|
1342
|
+
"character": 19
|
|
1343
|
+
},
|
|
1344
|
+
"name": "boolean"
|
|
1345
|
+
}
|
|
1346
|
+
}
|
|
1347
|
+
]
|
|
1348
|
+
},
|
|
1349
|
+
{
|
|
1350
|
+
"__schema": "InterfaceSchema",
|
|
1351
|
+
"location": {
|
|
1352
|
+
"file": "index.ts",
|
|
1353
|
+
"line": 110,
|
|
1354
|
+
"character": 1
|
|
1355
|
+
},
|
|
1356
|
+
"name": "ComputedNameNoType",
|
|
1357
|
+
"members": [
|
|
1358
|
+
{
|
|
1359
|
+
"__schema": "VariableSchema",
|
|
1360
|
+
"location": {
|
|
1361
|
+
"file": "index.ts",
|
|
1362
|
+
"line": 111,
|
|
1363
|
+
"character": 3
|
|
1364
|
+
},
|
|
1365
|
+
"name": "[computedName]",
|
|
1366
|
+
"signature": "",
|
|
1367
|
+
"type": {
|
|
1368
|
+
"__schema": "InferenceTypeSchema",
|
|
1369
|
+
"location": {
|
|
1370
|
+
"file": "index.ts",
|
|
1371
|
+
"line": 111,
|
|
1372
|
+
"character": 3
|
|
1373
|
+
},
|
|
1374
|
+
"type": "any"
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
]
|
|
1378
|
+
},
|
|
1379
|
+
{
|
|
1380
|
+
"__schema": "TypeSchema",
|
|
1381
|
+
"location": {
|
|
1382
|
+
"file": "index.ts",
|
|
1383
|
+
"line": 116,
|
|
1384
|
+
"character": 1
|
|
1385
|
+
},
|
|
1386
|
+
"name": "templateLiteralType",
|
|
1387
|
+
"signature": "type templateLiteralType = \"hello world1-a hi world2\" | \"hello world1-b hi world2\"",
|
|
1388
|
+
"type": {
|
|
1389
|
+
"__schema": "TemplateLiteralTypeSchema",
|
|
1390
|
+
"location": {
|
|
1391
|
+
"file": "index.ts",
|
|
1392
|
+
"line": 116,
|
|
1393
|
+
"character": 35
|
|
1394
|
+
},
|
|
1395
|
+
"head": "hello ",
|
|
1396
|
+
"templateSpans": [
|
|
1397
|
+
{
|
|
1398
|
+
"__schema": "TemplateLiteralTypeSpanSchema",
|
|
1399
|
+
"location": {
|
|
1400
|
+
"file": "index.ts",
|
|
1401
|
+
"line": 116,
|
|
1402
|
+
"character": 44
|
|
1403
|
+
},
|
|
1404
|
+
"literal": " hi ",
|
|
1405
|
+
"type": {
|
|
1406
|
+
"__schema": "InferenceTypeSchema",
|
|
1407
|
+
"location": {
|
|
1408
|
+
"file": "index.ts",
|
|
1409
|
+
"line": 116,
|
|
1410
|
+
"character": 44
|
|
1411
|
+
},
|
|
1412
|
+
"type": "\"world1-a\" | \"world1-b\""
|
|
1413
|
+
}
|
|
1414
|
+
},
|
|
1415
|
+
{
|
|
1416
|
+
"__schema": "TemplateLiteralTypeSpanSchema",
|
|
1417
|
+
"location": {
|
|
1418
|
+
"file": "index.ts",
|
|
1419
|
+
"line": 116,
|
|
1420
|
+
"character": 57
|
|
1421
|
+
},
|
|
1422
|
+
"literal": "",
|
|
1423
|
+
"type": {
|
|
1424
|
+
"__schema": "InferenceTypeSchema",
|
|
1425
|
+
"location": {
|
|
1426
|
+
"file": "index.ts",
|
|
1427
|
+
"line": 116,
|
|
1428
|
+
"character": 57
|
|
1429
|
+
},
|
|
1430
|
+
"type": "\"world2\""
|
|
1431
|
+
}
|
|
1432
|
+
}
|
|
1433
|
+
]
|
|
1434
|
+
}
|
|
1308
1435
|
}
|
|
1309
1436
|
]
|
|
1437
|
+
},
|
|
1438
|
+
"componentId": {
|
|
1439
|
+
"name": "button",
|
|
1440
|
+
"scope": "org.scope"
|
|
1310
1441
|
}
|
|
1311
1442
|
}
|