@teambit/schema 1.0.806 → 1.0.807

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.
@@ -1018,23 +1018,50 @@
1018
1018
  "signature": "const a1: {\n a: number;\n b: number;\n}",
1019
1019
  "name": "a1",
1020
1020
  "type": {
1021
- "__schema": "TypeQuerySchema",
1021
+ "__schema": "ObjectLiteralExpressionSchema",
1022
1022
  "location": {
1023
1023
  "filePath": "index.ts",
1024
1024
  "line": 61,
1025
- "character": 18
1025
+ "character": 31
1026
1026
  },
1027
- "signature": "const obj: {\n a: number;\n b: number;\n}",
1028
- "type": {
1029
- "__schema": "TypeRefSchema",
1030
- "location": {
1031
- "filePath": "index.ts",
1032
- "line": 61,
1033
- "character": 25
1027
+ "members": [
1028
+ {
1029
+ "__schema": "PropertyAssignmentSchema",
1030
+ "location": {
1031
+ "filePath": "index.ts",
1032
+ "line": 61,
1033
+ "character": 33
1034
+ },
1035
+ "name": "a",
1036
+ "value": {
1037
+ "__schema": "LiteralValueSchema",
1038
+ "location": {
1039
+ "filePath": "index.ts",
1040
+ "line": 61,
1041
+ "character": 36
1042
+ },
1043
+ "value": "5"
1044
+ }
1034
1045
  },
1035
- "name": "obj",
1036
- "internalFilePath": "index.ts"
1037
- }
1046
+ {
1047
+ "__schema": "PropertyAssignmentSchema",
1048
+ "location": {
1049
+ "filePath": "index.ts",
1050
+ "line": 61,
1051
+ "character": 39
1052
+ },
1053
+ "name": "b",
1054
+ "value": {
1055
+ "__schema": "LiteralValueSchema",
1056
+ "location": {
1057
+ "filePath": "index.ts",
1058
+ "line": 61,
1059
+ "character": 42
1060
+ },
1061
+ "value": "9"
1062
+ }
1063
+ }
1064
+ ]
1038
1065
  },
1039
1066
  "isOptional": false,
1040
1067
  "defaultValue": "{ a: 5, b: 9 }"
@@ -1980,28 +2007,7 @@
1980
2007
  },
1981
2008
  "signature": "const gfnc2: <T>(a: T) => void",
1982
2009
  "name": "anonymous",
1983
- "params": [
1984
- {
1985
- "__schema": "ParameterSchema",
1986
- "location": {
1987
- "filePath": "index.ts",
1988
- "line": 133,
1989
- "character": 14
1990
- },
1991
- "name": "a",
1992
- "type": {
1993
- "__schema": "InferenceTypeSchema",
1994
- "location": {
1995
- "filePath": "index.ts",
1996
- "line": 133,
1997
- "character": 14
1998
- },
1999
- "type": "T"
2000
- },
2001
- "isOptional": false,
2002
- "isSpread": false
2003
- }
2004
- ],
2010
+ "params": [],
2005
2011
  "returnType": {
2006
2012
  "__schema": "InferenceTypeSchema",
2007
2013
  "location": {
@@ -2009,7 +2015,7 @@
2009
2015
  "line": 133,
2010
2016
  "character": 14
2011
2017
  },
2012
- "type": "void"
2018
+ "type": "any"
2013
2019
  },
2014
2020
  "modifiers": []
2015
2021
  },
@@ -3127,30 +3133,48 @@
3127
3133
  "signature": "const obj: {\n a: number;\n b: number;\n}",
3128
3134
  "name": "obj",
3129
3135
  "type": {
3130
- "__schema": "ArrayLiteralExpressionSchema",
3136
+ "__schema": "ObjectLiteralExpressionSchema",
3131
3137
  "location": {
3132
3138
  "filePath": "index.ts",
3133
3139
  "line": 59,
3134
- "character": 7
3140
+ "character": 13
3135
3141
  },
3136
3142
  "members": [
3137
3143
  {
3138
- "__schema": "InferenceTypeSchema",
3144
+ "__schema": "PropertyAssignmentSchema",
3139
3145
  "location": {
3140
3146
  "filePath": "index.ts",
3141
3147
  "line": 59,
3142
- "character": 7
3148
+ "character": 15
3143
3149
  },
3144
- "type": "a: number"
3150
+ "name": "a",
3151
+ "value": {
3152
+ "__schema": "LiteralValueSchema",
3153
+ "location": {
3154
+ "filePath": "index.ts",
3155
+ "line": 59,
3156
+ "character": 18
3157
+ },
3158
+ "value": "1"
3159
+ }
3145
3160
  },
3146
3161
  {
3147
- "__schema": "InferenceTypeSchema",
3162
+ "__schema": "PropertyAssignmentSchema",
3148
3163
  "location": {
3149
3164
  "filePath": "index.ts",
3150
3165
  "line": 59,
3151
- "character": 7
3166
+ "character": 21
3152
3167
  },
3153
- "type": "b: number"
3168
+ "name": "b",
3169
+ "value": {
3170
+ "__schema": "LiteralValueSchema",
3171
+ "location": {
3172
+ "filePath": "index.ts",
3173
+ "line": 59,
3174
+ "character": 24
3175
+ },
3176
+ "value": "2"
3177
+ }
3154
3178
  }
3155
3179
  ]
3156
3180
  },
@@ -3411,45 +3435,8 @@
3411
3435
  "line": 1,
3412
3436
  "character": 1
3413
3437
  },
3414
- "exports": [
3415
- {
3416
- "__schema": "TypeSchema",
3417
- "location": {
3418
- "filePath": "button.tsx",
3419
- "line": 6,
3420
- "character": 1
3421
- },
3422
- "signature": "type ButtonElementType = \"a\" | \"button\"",
3423
- "name": "ButtonElementType",
3424
- "type": {
3425
- "__schema": "TypeUnionSchema",
3426
- "location": {
3427
- "filePath": "button.tsx",
3428
- "line": 6,
3429
- "character": 33
3430
- },
3431
- "types": [
3432
- {
3433
- "__schema": "LiteralTypeSchema",
3434
- "location": {
3435
- "filePath": "button.tsx",
3436
- "line": 6,
3437
- "character": 33
3438
- },
3439
- "name": "'a'"
3440
- },
3441
- {
3442
- "__schema": "LiteralTypeSchema",
3443
- "location": {
3444
- "filePath": "button.tsx",
3445
- "line": 6,
3446
- "character": 39
3447
- },
3448
- "name": "'button'"
3449
- }
3450
- ]
3451
- }
3452
- },
3438
+ "exports": [],
3439
+ "internals": [
3453
3440
  {
3454
3441
  "__schema": "TypeSchema",
3455
3442
  "location": {
@@ -3639,44 +3626,8 @@
3639
3626
  "modifiers": [
3640
3627
  "export"
3641
3628
  ]
3642
- },
3643
- {
3644
- "__schema": "ClassSchema",
3645
- "location": {
3646
- "filePath": "button.tsx",
3647
- "line": 60,
3648
- "character": 1
3649
- },
3650
- "signature": "class Bar",
3651
- "name": "Bar",
3652
- "members": [
3653
- {
3654
- "__schema": "FunctionLikeSchema",
3655
- "location": {
3656
- "filePath": "button.tsx",
3657
- "line": 61,
3658
- "character": 3
3659
- },
3660
- "signature": "(method) Bar.foo(): void",
3661
- "name": "foo",
3662
- "params": [],
3663
- "returnType": {
3664
- "__schema": "InferenceTypeSchema",
3665
- "location": {
3666
- "filePath": "button.tsx",
3667
- "line": 61,
3668
- "character": 3
3669
- },
3670
- "type": "void"
3671
- },
3672
- "modifiers": []
3673
- }
3674
- ],
3675
- "extendsNodes": [],
3676
- "implementNodes": []
3677
3629
  }
3678
- ],
3679
- "internals": []
3630
+ ]
3680
3631
  },
3681
3632
  {
3682
3633
  "__schema": "ModuleSchema",
@@ -3685,28 +3636,8 @@
3685
3636
  "line": 3,
3686
3637
  "character": 1
3687
3638
  },
3688
- "exports": [
3689
- {
3690
- "__schema": "FunctionLikeSchema",
3691
- "location": {
3692
- "filePath": "button.composition.tsx",
3693
- "line": 6,
3694
- "character": 14
3695
- },
3696
- "signature": "function(): any",
3697
- "name": "BasicButton",
3698
- "params": [],
3699
- "returnType": {
3700
- "__schema": "InferenceTypeSchema",
3701
- "location": {
3702
- "filePath": "button.composition.tsx",
3703
- "line": 6,
3704
- "character": 28
3705
- },
3706
- "type": "any"
3707
- },
3708
- "modifiers": []
3709
- },
3639
+ "exports": [],
3640
+ "internals": [
3710
3641
  {
3711
3642
  "__schema": "FunctionLikeSchema",
3712
3643
  "location": {
@@ -3787,72 +3718,8 @@
3787
3718
  "modifiers": [
3788
3719
  "export"
3789
3720
  ]
3790
- },
3791
- {
3792
- "__schema": "FunctionLikeSchema",
3793
- "location": {
3794
- "filePath": "button.composition.tsx",
3795
- "line": 18,
3796
- "character": 14
3797
- },
3798
- "signature": "function(): any",
3799
- "name": "ButtonWithCustomStyles",
3800
- "params": [],
3801
- "returnType": {
3802
- "__schema": "InferenceTypeSchema",
3803
- "location": {
3804
- "filePath": "button.composition.tsx",
3805
- "line": 18,
3806
- "character": 39
3807
- },
3808
- "type": "any"
3809
- },
3810
- "modifiers": []
3811
- },
3812
- {
3813
- "__schema": "FunctionLikeSchema",
3814
- "location": {
3815
- "filePath": "button.composition.tsx",
3816
- "line": 22,
3817
- "character": 14
3818
- },
3819
- "signature": "function(): any",
3820
- "name": "ButtonWithIcon",
3821
- "params": [],
3822
- "returnType": {
3823
- "__schema": "InferenceTypeSchema",
3824
- "location": {
3825
- "filePath": "button.composition.tsx",
3826
- "line": 22,
3827
- "character": 31
3828
- },
3829
- "type": "any"
3830
- },
3831
- "modifiers": []
3832
- },
3833
- {
3834
- "__schema": "FunctionLikeSchema",
3835
- "location": {
3836
- "filePath": "button.composition.tsx",
3837
- "line": 31,
3838
- "character": 14
3839
- },
3840
- "signature": "function(): any",
3841
- "name": "ButtonAsALink",
3842
- "params": [],
3843
- "returnType": {
3844
- "__schema": "InferenceTypeSchema",
3845
- "location": {
3846
- "filePath": "button.composition.tsx",
3847
- "line": 31,
3848
- "character": 30
3849
- },
3850
- "type": "any"
3851
- },
3852
- "modifiers": []
3853
3721
  }
3854
- ],
3855
- "internals": []
3722
+ ]
3856
3723
  },
3857
3724
  {
3858
3725
  "__schema": "ModuleSchema",
@@ -3861,3145 +3728,81 @@
3861
3728
  "line": 15,
3862
3729
  "character": 1
3863
3730
  },
3864
- "exports": [
3731
+ "exports": [],
3732
+ "internals": [
3865
3733
  {
3866
- "__schema": "FunctionLikeSchema",
3734
+ "__schema": "ClassSchema",
3867
3735
  "location": {
3868
3736
  "filePath": "index.ts",
3869
- "line": 15,
3737
+ "line": 34,
3870
3738
  "character": 1
3871
3739
  },
3872
- "doc": {
3873
- "__schema": "DocSchema",
3874
- "location": {
3875
- "filePath": "index.ts",
3876
- "line": 8,
3877
- "character": 1
3878
- },
3879
- "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 */",
3880
- "comment": "General comment of the myFunc",
3881
- "tags": [
3882
- {
3883
- "__schema": "TagSchema",
3740
+ "signature": "class Foo",
3741
+ "name": "Foo",
3742
+ "members": [],
3743
+ "extendsNodes": [],
3744
+ "implementNodes": []
3745
+ },
3746
+ {
3747
+ "__schema": "ModuleSchema",
3748
+ "location": {
3749
+ "filePath": "index.ts",
3750
+ "line": 59,
3751
+ "character": 1
3752
+ },
3753
+ "exports": [
3754
+ {
3755
+ "__schema": "VariableLikeSchema",
3756
+ "location": {
3757
+ "filePath": "index.ts",
3758
+ "line": 59,
3759
+ "character": 7
3760
+ },
3761
+ "signature": "const obj: {\n a: number;\n b: number;\n}",
3762
+ "name": "obj",
3763
+ "type": {
3764
+ "__schema": "ObjectLiteralExpressionSchema",
3884
3765
  "location": {
3885
3766
  "filePath": "index.ts",
3886
- "line": 10,
3887
- "character": 4
3888
- },
3889
- "tagName": "deprecate",
3890
- "comment": "example of deprecation tag"
3891
- },
3892
- {
3893
- "__schema": "PropertyLikeTagSchema",
3894
- "location": {
3895
- "filePath": "index.ts",
3896
- "line": 11,
3897
- "character": 4
3898
- },
3899
- "name": "a",
3900
- "tagName": "parameter",
3901
- "comment": "this is A",
3902
- "type": {
3903
- "__schema": "KeywordTypeSchema",
3904
- "location": {
3905
- "filePath": "index.ts",
3906
- "line": 11,
3907
- "character": 15
3908
- },
3909
- "name": "number"
3910
- }
3911
- },
3912
- {
3913
- "__schema": "PropertyLikeTagSchema",
3914
- "location": {
3915
- "filePath": "index.ts",
3916
- "line": 12,
3917
- "character": 4
3918
- },
3919
- "name": "b",
3920
- "tagName": "parameter",
3921
- "comment": "this is B"
3922
- },
3923
- {
3924
- "__schema": "ReturnTagSchema",
3925
- "location": {
3926
- "filePath": "index.ts",
3927
- "line": 13,
3928
- "character": 4
3929
- },
3930
- "tagName": "return",
3931
- "comment": "results of adding a to b",
3932
- "type": {
3933
- "__schema": "KeywordTypeSchema",
3934
- "location": {
3935
- "filePath": "index.ts",
3936
- "line": 13,
3937
- "character": 15
3938
- },
3939
- "name": "number"
3940
- }
3941
- }
3942
- ]
3943
- },
3944
- "signature": "function myFunc(a?: number, b?: number): number",
3945
- "name": "myFunc",
3946
- "params": [
3947
- {
3948
- "__schema": "ParameterSchema",
3949
- "location": {
3950
- "filePath": "index.ts",
3951
- "line": 15,
3952
- "character": 24
3953
- },
3954
- "name": "a",
3955
- "type": {
3956
- "__schema": "InferenceTypeSchema",
3957
- "location": {
3958
- "filePath": "index.ts",
3959
- "line": 15,
3960
- "character": 24
3961
- },
3962
- "type": "number"
3963
- },
3964
- "isOptional": true,
3965
- "defaultValue": "4",
3966
- "isSpread": false
3967
- },
3968
- {
3969
- "__schema": "ParameterSchema",
3970
- "location": {
3971
- "filePath": "index.ts",
3972
- "line": 15,
3973
- "character": 31
3974
- },
3975
- "name": "b",
3976
- "type": {
3977
- "__schema": "InferenceTypeSchema",
3978
- "location": {
3979
- "filePath": "index.ts",
3980
- "line": 15,
3981
- "character": 31
3982
- },
3983
- "type": "number"
3984
- },
3985
- "isOptional": true,
3986
- "defaultValue": "5",
3987
- "isSpread": false
3988
- }
3989
- ],
3990
- "returnType": {
3991
- "__schema": "KeywordTypeSchema",
3992
- "location": {
3993
- "filePath": "index.ts",
3994
- "line": 15,
3995
- "character": 39
3996
- },
3997
- "name": "number"
3998
- },
3999
- "modifiers": [
4000
- "export"
4001
- ]
4002
- },
4003
- {
4004
- "__schema": "TypeSchema",
4005
- "location": {
4006
- "filePath": "button.tsx",
4007
- "line": 6,
4008
- "character": 1
4009
- },
4010
- "signature": "type ButtonElementType = \"a\" | \"button\"",
4011
- "name": "ButtonElementType",
4012
- "type": {
4013
- "__schema": "TypeUnionSchema",
4014
- "location": {
4015
- "filePath": "button.tsx",
4016
- "line": 6,
4017
- "character": 33
4018
- },
4019
- "types": [
4020
- {
4021
- "__schema": "LiteralTypeSchema",
4022
- "location": {
4023
- "filePath": "button.tsx",
4024
- "line": 6,
4025
- "character": 33
4026
- },
4027
- "name": "'a'"
4028
- },
4029
- {
4030
- "__schema": "LiteralTypeSchema",
4031
- "location": {
4032
- "filePath": "button.tsx",
4033
- "line": 6,
4034
- "character": 39
4035
- },
4036
- "name": "'button'"
4037
- }
4038
- ]
4039
- }
4040
- },
4041
- {
4042
- "__schema": "TypeSchema",
4043
- "location": {
4044
- "filePath": "button.tsx",
4045
- "line": 8,
4046
- "character": 1
4047
- },
4048
- "signature": "type ButtonProps = any",
4049
- "name": "ButtonProps",
4050
- "type": {
4051
- "__schema": "TypeIntersectionSchema",
4052
- "location": {
4053
- "filePath": "button.tsx",
4054
- "line": 8,
4055
- "character": 27
4056
- },
4057
- "types": [
4058
- {
4059
- "__schema": "TypeLiteralSchema",
4060
- "location": {
4061
- "filePath": "button.tsx",
4062
- "line": 8,
4063
- "character": 27
4064
- },
4065
- "members": [
4066
- {
4067
- "__schema": "VariableLikeSchema",
4068
- "location": {
4069
- "filePath": "button.tsx",
4070
- "line": 12,
4071
- "character": 3
4072
- },
4073
- "doc": {
4074
- "__schema": "DocSchema",
4075
- "location": {
4076
- "filePath": "button.tsx",
4077
- "line": 9,
4078
- "character": 3
4079
- },
4080
- "raw": "/**\n * children of the Button.\n */",
4081
- "comment": "children of the Button.",
4082
- "tags": []
4083
- },
4084
- "signature": "(property) children: ReactNode",
4085
- "name": "children",
4086
- "type": {
4087
- "__schema": "TypeRefSchema",
4088
- "location": {
4089
- "filePath": "button.tsx",
4090
- "line": 12,
4091
- "character": 3
4092
- },
4093
- "name": "ReactNode",
4094
- "packageName": "react"
4095
- },
4096
- "isOptional": false
4097
- },
4098
- {
4099
- "__schema": "VariableLikeSchema",
4100
- "location": {
4101
- "filePath": "button.tsx",
4102
- "line": 17,
4103
- "character": 3
4104
- },
4105
- "doc": {
4106
- "__schema": "DocSchema",
4107
- "location": {
4108
- "filePath": "button.tsx",
4109
- "line": 14,
4110
- "character": 3
4111
- },
4112
- "raw": "/**\n * link to target page. once href is used, Button is considered an A tag.\n */",
4113
- "comment": "link to target page. once href is used, Button is considered an A tag.",
4114
- "tags": []
4115
- },
4116
- "signature": "(property) href?: string | undefined",
4117
- "name": "href",
4118
- "type": {
4119
- "__schema": "KeywordTypeSchema",
4120
- "location": {
4121
- "filePath": "button.tsx",
4122
- "line": 17,
4123
- "character": 10
4124
- },
4125
- "name": "string"
4126
- },
4127
- "isOptional": true
4128
- },
4129
- {
4130
- "__schema": "VariableLikeSchema",
4131
- "location": {
4132
- "filePath": "button.tsx",
4133
- "line": 22,
4134
- "character": 3
4135
- },
4136
- "doc": {
4137
- "__schema": "DocSchema",
4138
- "location": {
4139
- "filePath": "button.tsx",
4140
- "line": 19,
4141
- "character": 3
4142
- },
4143
- "raw": "/**\n * class names to inject.\n */",
4144
- "comment": "class names to inject.",
4145
- "tags": []
4146
- },
4147
- "signature": "(property) className?: string | undefined",
4148
- "name": "className",
4149
- "type": {
4150
- "__schema": "KeywordTypeSchema",
4151
- "location": {
4152
- "filePath": "button.tsx",
4153
- "line": 22,
4154
- "character": 15
4155
- },
4156
- "name": "string"
4157
- },
4158
- "isOptional": true
4159
- }
4160
- ]
4161
- },
4162
- {
4163
- "__schema": "TypeRefSchema",
4164
- "location": {
4165
- "filePath": "button.tsx",
4166
- "line": 23,
4167
- "character": 5
4168
- },
4169
- "name": "React.ButtonHTMLAttributes",
4170
- "typeArgs": [
4171
- {
4172
- "__schema": "TypeRefSchema",
4173
- "location": {
4174
- "filePath": "button.tsx",
4175
- "line": 23,
4176
- "character": 32
4177
- },
4178
- "name": "HTMLButtonElement"
4179
- }
4180
- ]
4181
- }
4182
- ]
4183
- }
4184
- },
4185
- {
4186
- "__schema": "FunctionLikeSchema",
4187
- "location": {
4188
- "filePath": "button.tsx",
4189
- "line": 25,
4190
- "character": 1
4191
- },
4192
- "signature": "function Button(props: ButtonProps): any",
4193
- "name": "Button",
4194
- "params": [
4195
- {
4196
- "__schema": "ParameterSchema",
4197
- "location": {
4198
- "filePath": "button.tsx",
4199
- "line": 25,
4200
- "character": 24
4201
- },
4202
- "name": "props",
4203
- "type": {
4204
- "__schema": "TypeRefSchema",
4205
- "location": {
4206
- "filePath": "button.tsx",
4207
- "line": 25,
4208
- "character": 31
4209
- },
4210
- "name": "ButtonProps",
4211
- "internalFilePath": "button.tsx"
4212
- },
4213
- "isOptional": false,
4214
- "isSpread": false
4215
- }
4216
- ],
4217
- "returnType": {
4218
- "__schema": "TypeRefSchema",
4219
- "location": {
4220
- "filePath": "button.tsx",
4221
- "line": 25,
4222
- "character": 1
4223
- },
4224
- "name": "Button",
4225
- "internalFilePath": "button.tsx"
4226
- },
4227
- "modifiers": [
4228
- "export"
4229
- ]
4230
- },
4231
- {
4232
- "__schema": "ClassSchema",
4233
- "location": {
4234
- "filePath": "button.tsx",
4235
- "line": 60,
4236
- "character": 1
4237
- },
4238
- "signature": "class Bar",
4239
- "name": "Bar",
4240
- "members": [
4241
- {
4242
- "__schema": "FunctionLikeSchema",
4243
- "location": {
4244
- "filePath": "button.tsx",
4245
- "line": 61,
4246
- "character": 3
4247
- },
4248
- "signature": "(method) Bar.foo(): void",
4249
- "name": "foo",
4250
- "params": [],
4251
- "returnType": {
4252
- "__schema": "InferenceTypeSchema",
4253
- "location": {
4254
- "filePath": "button.tsx",
4255
- "line": 61,
4256
- "character": 3
4257
- },
4258
- "type": "void"
4259
- },
4260
- "modifiers": []
4261
- }
4262
- ],
4263
- "extendsNodes": [],
4264
- "implementNodes": []
4265
- },
4266
- {
4267
- "__schema": "FunctionLikeSchema",
4268
- "location": {
4269
- "filePath": "index.ts",
4270
- "line": 21,
4271
- "character": 1
4272
- },
4273
- "signature": "function Hi(): void",
4274
- "name": "Hi",
4275
- "params": [],
4276
- "returnType": {
4277
- "__schema": "TypeRefSchema",
4278
- "location": {
4279
- "filePath": "index.ts",
4280
- "line": 21,
4281
- "character": 1
4282
- },
4283
- "name": "Hi"
4284
- },
4285
- "modifiers": [
4286
- "export"
4287
- ]
4288
- },
4289
- {
4290
- "__schema": "VariableLikeSchema",
4291
- "location": {
4292
- "filePath": "index.ts",
4293
- "line": 23,
4294
- "character": 14
4295
- },
4296
- "signature": "const a: 4",
4297
- "name": "a",
4298
- "type": {
4299
- "__schema": "InferenceTypeSchema",
4300
- "location": {
4301
- "filePath": "index.ts",
4302
- "line": 23,
4303
- "character": 14
4304
- },
4305
- "type": "4"
4306
- },
4307
- "isOptional": false,
4308
- "defaultValue": "4"
4309
- },
4310
- {
4311
- "__schema": "VariableLikeSchema",
4312
- "location": {
4313
- "filePath": "index.ts",
4314
- "line": 24,
4315
- "character": 3
4316
- },
4317
- "signature": "const b: 5",
4318
- "name": "b",
4319
- "type": {
4320
- "__schema": "LiteralTypeSchema",
4321
- "location": {
4322
- "filePath": "index.ts",
4323
- "line": 24,
4324
- "character": 6
4325
- },
4326
- "name": "5"
4327
- },
4328
- "isOptional": false,
4329
- "defaultValue": "5"
4330
- },
4331
- {
4332
- "__schema": "ModuleSchema",
4333
- "location": {
4334
- "filePath": "button.composition.tsx",
4335
- "line": 3,
4336
- "character": 1
4337
- },
4338
- "exports": [
4339
- {
4340
- "__schema": "FunctionLikeSchema",
4341
- "location": {
4342
- "filePath": "button.composition.tsx",
4343
- "line": 6,
4344
- "character": 14
4345
- },
4346
- "signature": "function(): any",
4347
- "name": "BasicButton",
4348
- "params": [],
4349
- "returnType": {
4350
- "__schema": "InferenceTypeSchema",
4351
- "location": {
4352
- "filePath": "button.composition.tsx",
4353
- "line": 6,
4354
- "character": 28
4355
- },
4356
- "type": "any"
4357
- },
4358
- "modifiers": []
4359
- },
4360
- {
4361
- "__schema": "FunctionLikeSchema",
4362
- "location": {
4363
- "filePath": "button.composition.tsx",
4364
- "line": 14,
4365
- "character": 1
4366
- },
4367
- "doc": {
4368
- "__schema": "DocSchema",
4369
- "location": {
4370
- "filePath": "button.composition.tsx",
4371
- "line": 10,
4372
- "character": 1
4373
- },
4374
- "raw": "/**\n * example of passing a JSX Element as a parameter\n */",
4375
- "comment": "example of passing a JSX Element as a parameter",
4376
- "tags": []
4377
- },
4378
- "signature": "function Footer({ children }: {\n children?: any;\n}): any",
4379
- "name": "Footer",
4380
- "params": [
4381
- {
4382
- "__schema": "ParameterSchema",
4383
- "location": {
4384
- "filePath": "button.composition.tsx",
4385
- "line": 14,
4386
- "character": 24
4387
- },
4388
- "name": "{ children = <BasicButton /> }",
4389
- "type": {
4390
- "__schema": "TypeLiteralSchema",
4391
- "location": {
4392
- "filePath": "button.composition.tsx",
4393
- "line": 14,
4394
- "character": 24
4395
- },
4396
- "members": [
4397
- {
4398
- "__schema": "InferenceTypeSchema",
4399
- "location": {
4400
- "filePath": "button.composition.tsx",
4401
- "line": 14,
4402
- "character": 24
4403
- },
4404
- "name": "children",
4405
- "type": "any"
4406
- }
4407
- ]
4408
- },
4409
- "isOptional": false,
4410
- "objectBindingNodes": [
4411
- {
4412
- "__schema": "InferenceTypeSchema",
4413
- "location": {
4414
- "filePath": "button.composition.tsx",
4415
- "line": 14,
4416
- "character": 26
4417
- },
4418
- "name": "children",
4419
- "type": "any",
4420
- "defaultValue": "<BasicButton />",
4421
- "isSpread": false
4422
- }
4423
- ],
4424
- "isSpread": false
4425
- }
4426
- ],
4427
- "returnType": {
4428
- "__schema": "TypeRefSchema",
4429
- "location": {
4430
- "filePath": "button.composition.tsx",
4431
- "line": 14,
4432
- "character": 1
4433
- },
4434
- "name": "Footer",
4435
- "internalFilePath": "button.composition.tsx"
4436
- },
4437
- "modifiers": [
4438
- "export"
4439
- ]
4440
- },
4441
- {
4442
- "__schema": "FunctionLikeSchema",
4443
- "location": {
4444
- "filePath": "button.composition.tsx",
4445
- "line": 18,
4446
- "character": 14
4447
- },
4448
- "signature": "function(): any",
4449
- "name": "ButtonWithCustomStyles",
4450
- "params": [],
4451
- "returnType": {
4452
- "__schema": "InferenceTypeSchema",
4453
- "location": {
4454
- "filePath": "button.composition.tsx",
4455
- "line": 18,
4456
- "character": 39
4457
- },
4458
- "type": "any"
4459
- },
4460
- "modifiers": []
4461
- },
4462
- {
4463
- "__schema": "FunctionLikeSchema",
4464
- "location": {
4465
- "filePath": "button.composition.tsx",
4466
- "line": 22,
4467
- "character": 14
4468
- },
4469
- "signature": "function(): any",
4470
- "name": "ButtonWithIcon",
4471
- "params": [],
4472
- "returnType": {
4473
- "__schema": "InferenceTypeSchema",
4474
- "location": {
4475
- "filePath": "button.composition.tsx",
4476
- "line": 22,
4477
- "character": 31
4478
- },
4479
- "type": "any"
4480
- },
4481
- "modifiers": []
4482
- },
4483
- {
4484
- "__schema": "FunctionLikeSchema",
4485
- "location": {
4486
- "filePath": "button.composition.tsx",
4487
- "line": 31,
4488
- "character": 14
4489
- },
4490
- "signature": "function(): any",
4491
- "name": "ButtonAsALink",
4492
- "params": [],
4493
- "returnType": {
4494
- "__schema": "InferenceTypeSchema",
4495
- "location": {
4496
- "filePath": "button.composition.tsx",
4497
- "line": 31,
4498
- "character": 30
4499
- },
4500
- "type": "any"
4501
- },
4502
- "modifiers": []
4503
- }
4504
- ],
4505
- "internals": [],
4506
- "namespace": "Compositions"
4507
- },
4508
- {
4509
- "__schema": "VariableLikeSchema",
4510
- "location": {
4511
- "filePath": "index.ts",
4512
- "line": 28,
4513
- "character": 14
4514
- },
4515
- "signature": "const HiThere: \"HiThere\"",
4516
- "name": "HiThere",
4517
- "type": {
4518
- "__schema": "InferenceTypeSchema",
4519
- "location": {
4520
- "filePath": "index.ts",
4521
- "line": 28,
4522
- "character": 14
4523
- },
4524
- "type": "\"HiThere\""
4525
- },
4526
- "isOptional": false,
4527
- "defaultValue": "'HiThere'"
4528
- },
4529
- {
4530
- "__schema": "FunctionLikeSchema",
4531
- "location": {
4532
- "filePath": "index.ts",
4533
- "line": 30,
4534
- "character": 14
4535
- },
4536
- "signature": "function(): void",
4537
- "name": "Function",
4538
- "params": [],
4539
- "returnType": {
4540
- "__schema": "InferenceTypeSchema",
4541
- "location": {
4542
- "filePath": "index.ts",
4543
- "line": 30,
4544
- "character": 25
4545
- },
4546
- "type": "void"
4547
- },
4548
- "modifiers": []
4549
- },
4550
- {
4551
- "__schema": "VariableLikeSchema",
4552
- "location": {
4553
- "filePath": "index.ts",
4554
- "line": 32,
4555
- "character": 14
4556
- },
4557
- "signature": "const Array: string[]",
4558
- "name": "Array",
4559
- "type": {
4560
- "__schema": "TypeArraySchema",
4561
- "location": {
4562
- "filePath": "index.ts",
4563
- "line": 32,
4564
- "character": 14
4565
- },
4566
- "type": {
4567
- "__schema": "InferenceTypeSchema",
4568
- "location": {
4569
- "filePath": "index.ts",
4570
- "line": 32,
4571
- "character": 14
4572
- },
4573
- "type": "string"
4574
- }
4575
- },
4576
- "isOptional": false,
4577
- "defaultValue": "['hi', 'there']"
4578
- },
4579
- {
4580
- "__schema": "ExportSchema",
4581
- "location": {
4582
- "filePath": "index.ts",
4583
- "line": 50,
4584
- "character": 10
4585
- },
4586
- "signature": "class ClassSomething",
4587
- "name": "ClassSomething",
4588
- "exportNode": {
4589
- "__schema": "ClassSchema",
4590
- "location": {
4591
- "filePath": "index.ts",
4592
- "line": 36,
4593
- "character": 1
4594
- },
4595
- "signature": "class ClassSomething",
4596
- "name": "ClassSomething",
4597
- "members": [
4598
- {
4599
- "__schema": "VariableLikeSchema",
4600
- "location": {
4601
- "filePath": "index.ts",
4602
- "line": 37,
4603
- "character": 3
4604
- },
4605
- "signature": "(property) ClassSomething.app: string",
4606
- "name": "app",
4607
- "type": {
4608
- "__schema": "InferenceTypeSchema",
4609
- "location": {
4610
- "filePath": "index.ts",
4611
- "line": 37,
4612
- "character": 3
4613
- },
4614
- "type": "string"
4615
- },
4616
- "isOptional": true,
4617
- "defaultValue": "''"
4618
- },
4619
- {
4620
- "__schema": "ConstructorSchema",
4621
- "location": {
4622
- "filePath": "index.ts",
4623
- "line": 38,
4624
- "character": 3
4625
- },
4626
- "signature": "constructor ClassSomething(da: \"dsa\"): ClassSomething",
4627
- "name": "constructor",
4628
- "params": [
4629
- {
4630
- "__schema": "ParameterSchema",
4631
- "location": {
4632
- "filePath": "index.ts",
4633
- "line": 38,
4634
- "character": 15
4635
- },
4636
- "name": "da",
4637
- "type": {
4638
- "__schema": "LiteralTypeSchema",
4639
- "location": {
4640
- "filePath": "index.ts",
4641
- "line": 38,
4642
- "character": 28
4643
- },
4644
- "name": "'dsa'"
4645
- },
4646
- "isOptional": false,
4647
- "isSpread": false
4648
- }
4649
- ],
4650
- "returnType": {
4651
- "__schema": "ThisTypeSchema",
4652
- "location": {
4653
- "filePath": "index.ts",
4654
- "line": 36,
4655
- "character": 1
4656
- },
4657
- "name": "ClassSomething"
4658
- },
4659
- "modifiers": []
4660
- },
4661
- {
4662
- "__schema": "FunctionLikeSchema",
4663
- "location": {
4664
- "filePath": "index.ts",
4665
- "line": 40,
4666
- "character": 3
4667
- },
4668
- "signature": "(method) ClassSomething.a(): Foo",
4669
- "name": "a",
4670
- "params": [],
4671
- "returnType": {
4672
- "__schema": "TypeRefSchema",
4673
- "location": {
4674
- "filePath": "index.ts",
4675
- "line": 40,
4676
- "character": 3
4677
- },
4678
- "name": "Foo",
4679
- "internalFilePath": "index.ts"
4680
- },
4681
- "modifiers": []
4682
- },
4683
- {
4684
- "__schema": "GetAccessorSchema",
4685
- "location": {
4686
- "filePath": "index.ts",
4687
- "line": 43,
4688
- "character": 3
4689
- },
4690
- "signature": "(getter) ClassSomething.getter: string",
4691
- "name": "getter",
4692
- "type": {
4693
- "__schema": "InferenceTypeSchema",
4694
- "location": {
4695
- "filePath": "index.ts",
4696
- "line": 43,
4697
- "character": 3
4698
- },
4699
- "type": "string"
4700
- }
4701
- },
4702
- {
4703
- "__schema": "SetAccessorSchema",
4704
- "location": {
4705
- "filePath": "index.ts",
4706
- "line": 47,
4707
- "character": 3
4708
- },
4709
- "signature": "(setter) ClassSomething.setter: boolean",
4710
- "name": "setter",
4711
- "param": {
4712
- "__schema": "ParameterSchema",
4713
- "location": {
4714
- "filePath": "index.ts",
4715
- "line": 47,
4716
- "character": 14
4717
- },
4718
- "name": "a",
4719
- "type": {
4720
- "__schema": "KeywordTypeSchema",
4721
- "location": {
4722
- "filePath": "index.ts",
4723
- "line": 47,
4724
- "character": 17
4725
- },
4726
- "name": "boolean"
4727
- },
4728
- "isOptional": false,
4729
- "isSpread": false
4730
- }
4731
- }
4732
- ],
4733
- "extendsNodes": [],
4734
- "implementNodes": []
4735
- }
4736
- },
4737
- {
4738
- "__schema": "TypeSchema",
4739
- "location": {
4740
- "filePath": "index.ts",
4741
- "line": 52,
4742
- "character": 1
4743
- },
4744
- "signature": "type IndexSig = {\n [key: string]: boolean;\n}",
4745
- "name": "IndexSig",
4746
- "type": {
4747
- "__schema": "TypeLiteralSchema",
4748
- "location": {
4749
- "filePath": "index.ts",
4750
- "line": 52,
4751
- "character": 24
4752
- },
4753
- "members": [
4754
- {
4755
- "__schema": "IndexSignatureSchema",
4756
- "location": {
4757
- "filePath": "index.ts",
4758
- "line": 52,
4759
- "character": 26
4760
- },
4761
- "keyType": {
4762
- "__schema": "ParameterSchema",
4763
- "location": {
4764
- "filePath": "index.ts",
4765
- "line": 52,
4766
- "character": 27
4767
- },
4768
- "name": "key",
4769
- "type": {
4770
- "__schema": "KeywordTypeSchema",
4771
- "location": {
4772
- "filePath": "index.ts",
4773
- "line": 52,
4774
- "character": 32
4775
- },
4776
- "name": "string"
4777
- },
4778
- "isOptional": false,
4779
- "isSpread": false
4780
- },
4781
- "valueType": {
4782
- "__schema": "KeywordTypeSchema",
4783
- "location": {
4784
- "filePath": "index.ts",
4785
- "line": 52,
4786
- "character": 41
4787
- },
4788
- "name": "boolean"
4789
- }
4790
- }
4791
- ]
4792
- }
4793
- },
4794
- {
4795
- "__schema": "InterfaceSchema",
4796
- "location": {
4797
- "filePath": "index.ts",
4798
- "line": 54,
4799
- "character": 1
4800
- },
4801
- "signature": "interface Hello",
4802
- "name": "Hello",
4803
- "members": [
4804
- {
4805
- "__schema": "VariableLikeSchema",
4806
- "location": {
4807
- "filePath": "index.ts",
4808
- "line": 55,
4809
- "character": 3
4810
- },
4811
- "signature": "(property) Hello.propertySig: () => void",
4812
- "name": "propertySig",
4813
- "type": {
4814
- "__schema": "FunctionLikeSchema",
4815
- "location": {
4816
- "filePath": "index.ts",
4817
- "line": 55,
4818
- "character": 16
4819
- },
4820
- "signature": "(): void",
4821
- "name": "",
4822
- "params": [],
4823
- "returnType": {
4824
- "__schema": "KeywordTypeSchema",
4825
- "location": {
4826
- "filePath": "index.ts",
4827
- "line": 55,
4828
- "character": 22
4829
- },
4830
- "name": "void"
4831
- },
4832
- "modifiers": []
4833
- },
4834
- "isOptional": false
4835
- },
4836
- {
4837
- "__schema": "FunctionLikeSchema",
4838
- "location": {
4839
- "filePath": "index.ts",
4840
- "line": 56,
4841
- "character": 3
4842
- },
4843
- "signature": "(method) Hello.methodSig(): string",
4844
- "name": "methodSig",
4845
- "params": [],
4846
- "returnType": {
4847
- "__schema": "KeywordTypeSchema",
4848
- "location": {
4849
- "filePath": "index.ts",
4850
- "line": 56,
4851
- "character": 16
4852
- },
4853
- "name": "string"
4854
- },
4855
- "modifiers": []
4856
- }
4857
- ],
4858
- "extendsNodes": []
4859
- },
4860
- {
4861
- "__schema": "VariableLikeSchema",
4862
- "location": {
4863
- "filePath": "index.ts",
4864
- "line": 61,
4865
- "character": 14
4866
- },
4867
- "signature": "const a1: {\n a: number;\n b: number;\n}",
4868
- "name": "a1",
4869
- "type": {
4870
- "__schema": "TypeQuerySchema",
4871
- "location": {
4872
- "filePath": "index.ts",
4873
- "line": 61,
4874
- "character": 18
4875
- },
4876
- "signature": "const obj: {\n a: number;\n b: number;\n}",
4877
- "type": {
4878
- "__schema": "TypeRefSchema",
4879
- "location": {
4880
- "filePath": "index.ts",
4881
- "line": 61,
4882
- "character": 25
4883
- },
4884
- "name": "obj",
4885
- "internalFilePath": "index.ts"
4886
- }
4887
- },
4888
- "isOptional": false,
4889
- "defaultValue": "{ a: 5, b: 9 }"
4890
- },
4891
- {
4892
- "__schema": "TypeSchema",
4893
- "location": {
4894
- "filePath": "index.ts",
4895
- "line": 63,
4896
- "character": 1
4897
- },
4898
- "signature": "type TypeOperator = \"a\" | \"b\"",
4899
- "name": "TypeOperator",
4900
- "type": {
4901
- "__schema": "TypeOperatorSchema",
4902
- "location": {
4903
- "filePath": "index.ts",
4904
- "line": 63,
4905
- "character": 28
4906
- },
4907
- "name": "keyof",
4908
- "type": {
4909
- "__schema": "TypeQuerySchema",
4910
- "location": {
4911
- "filePath": "index.ts",
4912
- "line": 63,
4913
- "character": 34
4914
- },
4915
- "signature": "const obj: {\n a: number;\n b: number;\n}",
4916
- "type": {
4917
- "__schema": "TypeRefSchema",
4918
- "location": {
4919
- "filePath": "index.ts",
4920
- "line": 63,
4921
- "character": 41
4922
- },
4923
- "name": "obj",
4924
- "internalFilePath": "index.ts"
4925
- }
4926
- }
4927
- }
4928
- },
4929
- {
4930
- "__schema": "FunctionLikeSchema",
4931
- "location": {
4932
- "filePath": "index.ts",
4933
- "line": 69,
4934
- "character": 14
4935
- },
4936
- "signature": "function(bar: Bar): Bar",
4937
- "name": "getBar",
4938
- "params": [
4939
- {
4940
- "__schema": "ParameterSchema",
4941
- "location": {
4942
- "filePath": "index.ts",
4943
- "line": 69,
4944
- "character": 24
4945
- },
4946
- "name": "bar",
4947
- "type": {
4948
- "__schema": "TypeRefSchema",
4949
- "location": {
4950
- "filePath": "index.ts",
4951
- "line": 69,
4952
- "character": 29
4953
- },
4954
- "name": "Bar",
4955
- "internalFilePath": "index.ts"
4956
- },
4957
- "isOptional": false,
4958
- "isSpread": false
4959
- }
4960
- ],
4961
- "returnType": {
4962
- "__schema": "TypeRefSchema",
4963
- "location": {
4964
- "filePath": "index.ts",
4965
- "line": 69,
4966
- "character": 23
4967
- },
4968
- "name": "Bar",
4969
- "internalFilePath": "index.ts"
4970
- },
4971
- "modifiers": []
4972
- },
4973
- {
4974
- "__schema": "FunctionLikeSchema",
4975
- "location": {
4976
- "filePath": "index.ts",
4977
- "line": 71,
4978
- "character": 14
4979
- },
4980
- "signature": "function([a, b, c]: [string, Function, Record<string, any>]): void",
4981
- "name": "tuple",
4982
- "params": [
4983
- {
4984
- "__schema": "ParameterSchema",
4985
- "location": {
4986
- "filePath": "index.ts",
4987
- "line": 71,
4988
- "character": 23
4989
- },
4990
- "name": "[ a, b, c ]",
4991
- "type": {
4992
- "__schema": "TupleTypeSchema",
4993
- "location": {
4994
- "filePath": "index.ts",
4995
- "line": 71,
4996
- "character": 34
4997
- },
4998
- "elements": [
4999
- {
5000
- "__schema": "KeywordTypeSchema",
5001
- "location": {
5002
- "filePath": "index.ts",
5003
- "line": 71,
5004
- "character": 35
5005
- },
5006
- "name": "string"
5007
- },
5008
- {
5009
- "__schema": "TypeRefSchema",
5010
- "location": {
5011
- "filePath": "index.ts",
5012
- "line": 71,
5013
- "character": 43
5014
- },
5015
- "name": "Function"
5016
- },
5017
- {
5018
- "__schema": "TypeRefSchema",
5019
- "location": {
5020
- "filePath": "index.ts",
5021
- "line": 71,
5022
- "character": 53
5023
- },
5024
- "name": "Record",
5025
- "typeArgs": [
5026
- {
5027
- "__schema": "KeywordTypeSchema",
5028
- "location": {
5029
- "filePath": "index.ts",
5030
- "line": 71,
5031
- "character": 60
5032
- },
5033
- "name": "string"
5034
- },
5035
- {
5036
- "__schema": "KeywordTypeSchema",
5037
- "location": {
5038
- "filePath": "index.ts",
5039
- "line": 71,
5040
- "character": 68
5041
- },
5042
- "name": "any"
5043
- }
5044
- ]
5045
- }
5046
- ]
5047
- },
5048
- "isOptional": false,
5049
- "isSpread": false
5050
- }
5051
- ],
5052
- "returnType": {
5053
- "__schema": "InferenceTypeSchema",
5054
- "location": {
5055
- "filePath": "index.ts",
5056
- "line": 71,
5057
- "character": 22
5058
- },
5059
- "type": "void"
5060
- },
5061
- "modifiers": []
5062
- },
5063
- {
5064
- "__schema": "EnumSchema",
5065
- "location": {
5066
- "filePath": "index.ts",
5067
- "line": 73,
5068
- "character": 1
5069
- },
5070
- "signature": "enum Food",
5071
- "name": "Food",
5072
- "members": [
5073
- {
5074
- "__schema": "EnumMemberSchema",
5075
- "location": {
5076
- "filePath": "index.ts",
5077
- "line": 74,
5078
- "character": 3
5079
- },
5080
- "signature": "(enum member) Food.Falafel = 0",
5081
- "name": "Falafel"
5082
- },
5083
- {
5084
- "__schema": "EnumMemberSchema",
5085
- "location": {
5086
- "filePath": "index.ts",
5087
- "line": 75,
5088
- "character": 3
5089
- },
5090
- "signature": "(enum member) Food.Hummus = 1",
5091
- "name": "Hummus"
5092
- },
5093
- {
5094
- "__schema": "EnumMemberSchema",
5095
- "location": {
5096
- "filePath": "index.ts",
5097
- "line": 76,
5098
- "character": 3
5099
- },
5100
- "signature": "(enum member) Food.Tahini = 2",
5101
- "name": "Tahini"
5102
- }
5103
- ]
5104
- },
5105
- {
5106
- "__schema": "FunctionLikeSchema",
5107
- "location": {
5108
- "filePath": "index.ts",
5109
- "line": 79,
5110
- "character": 1
5111
- },
5112
- "signature": "function getPromise(): Promise<string>",
5113
- "name": "getPromise",
5114
- "params": [],
5115
- "returnType": {
5116
- "__schema": "TypeRefSchema",
5117
- "location": {
5118
- "filePath": "index.ts",
5119
- "line": 79,
5120
- "character": 37
5121
- },
5122
- "name": "Promise",
5123
- "typeArgs": [
5124
- {
5125
- "__schema": "KeywordTypeSchema",
5126
- "location": {
5127
- "filePath": "index.ts",
5128
- "line": 79,
5129
- "character": 45
5130
- },
5131
- "name": "string"
5132
- }
5133
- ]
5134
- },
5135
- "modifiers": [
5136
- "export",
5137
- "async"
5138
- ]
5139
- },
5140
- {
5141
- "__schema": "TypeSchema",
5142
- "location": {
5143
- "filePath": "index.ts",
5144
- "line": 86,
5145
- "character": 1
5146
- },
5147
- "signature": "type TypeRefWithArgs = T3<T1, T2>",
5148
- "name": "TypeRefWithArgs",
5149
- "type": {
5150
- "__schema": "TypeRefSchema",
5151
- "location": {
5152
- "filePath": "index.ts",
5153
- "line": 86,
5154
- "character": 31
5155
- },
5156
- "name": "T3",
5157
- "internalFilePath": "index.ts",
5158
- "typeArgs": [
5159
- {
5160
- "__schema": "TypeRefSchema",
5161
- "location": {
5162
- "filePath": "index.ts",
5163
- "line": 86,
5164
- "character": 34
5165
- },
5166
- "name": "T1",
5167
- "internalFilePath": "index.ts"
5168
- },
5169
- {
5170
- "__schema": "TypeRefSchema",
5171
- "location": {
5172
- "filePath": "index.ts",
5173
- "line": 86,
5174
- "character": 38
5175
- },
5176
- "name": "T2",
5177
- "internalFilePath": "index.ts"
5178
- }
5179
- ]
5180
- }
5181
- },
5182
- {
5183
- "__schema": "TypeSchema",
5184
- "location": {
5185
- "filePath": "index.ts",
5186
- "line": 88,
5187
- "character": 1
5188
- },
5189
- "signature": "type ParenthesizedType = (T1 | T2)[]",
5190
- "name": "ParenthesizedType",
5191
- "type": {
5192
- "__schema": "TypeArraySchema",
5193
- "location": {
5194
- "filePath": "index.ts",
5195
- "line": 88,
5196
- "character": 33
5197
- },
5198
- "type": {
5199
- "__schema": "ParenthesizedTypeSchema",
5200
- "location": {
5201
- "filePath": "index.ts",
5202
- "line": 88,
5203
- "character": 33
5204
- },
5205
- "type": {
5206
- "__schema": "TypeUnionSchema",
5207
- "location": {
5208
- "filePath": "index.ts",
5209
- "line": 88,
5210
- "character": 34
5211
- },
5212
- "types": [
5213
- {
5214
- "__schema": "TypeRefSchema",
5215
- "location": {
5216
- "filePath": "index.ts",
5217
- "line": 88,
5218
- "character": 34
5219
- },
5220
- "name": "T1",
5221
- "internalFilePath": "index.ts"
5222
- },
5223
- {
5224
- "__schema": "TypeRefSchema",
5225
- "location": {
5226
- "filePath": "index.ts",
5227
- "line": 88,
5228
- "character": 39
5229
- },
5230
- "name": "T2",
5231
- "internalFilePath": "index.ts"
5232
- }
5233
- ]
5234
- }
5235
- }
5236
- }
5237
- },
5238
- {
5239
- "__schema": "FunctionLikeSchema",
5240
- "location": {
5241
- "filePath": "index.ts",
5242
- "line": 90,
5243
- "character": 1
5244
- },
5245
- "signature": "function typePredicateFn(str: any): str is string",
5246
- "name": "typePredicateFn",
5247
- "params": [
5248
- {
5249
- "__schema": "ParameterSchema",
5250
- "location": {
5251
- "filePath": "index.ts",
5252
- "line": 90,
5253
- "character": 33
5254
- },
5255
- "name": "str",
5256
- "type": {
5257
- "__schema": "KeywordTypeSchema",
5258
- "location": {
5259
- "filePath": "index.ts",
5260
- "line": 90,
5261
- "character": 38
5262
- },
5263
- "name": "any"
5264
- },
5265
- "isOptional": false,
5266
- "isSpread": false
5267
- }
5268
- ],
5269
- "returnType": {
5270
- "__schema": "TypePredicateSchema",
5271
- "location": {
5272
- "filePath": "index.ts",
5273
- "line": 90,
5274
- "character": 44
5275
- },
5276
- "name": "str",
5277
- "type": {
5278
- "__schema": "KeywordTypeSchema",
5279
- "location": {
5280
- "filePath": "index.ts",
5281
- "line": 90,
5282
- "character": 51
5283
- },
5284
- "name": "string"
5285
- },
5286
- "hasAssertsModifier": false
5287
- },
5288
- "modifiers": [
5289
- "export"
5290
- ]
5291
- },
5292
- {
5293
- "__schema": "FunctionLikeSchema",
5294
- "location": {
5295
- "filePath": "index.ts",
5296
- "line": 94,
5297
- "character": 1
5298
- },
5299
- "signature": "function typePredicateNoTypeFn(condition: any, msg?: string): asserts condition",
5300
- "name": "typePredicateNoTypeFn",
5301
- "params": [
5302
- {
5303
- "__schema": "ParameterSchema",
5304
- "location": {
5305
- "filePath": "index.ts",
5306
- "line": 94,
5307
- "character": 39
5308
- },
5309
- "name": "condition",
5310
- "type": {
5311
- "__schema": "KeywordTypeSchema",
5312
- "location": {
5313
- "filePath": "index.ts",
5314
- "line": 94,
5315
- "character": 50
5316
- },
5317
- "name": "any"
5318
- },
5319
- "isOptional": false,
5320
- "isSpread": false
5321
- },
5322
- {
5323
- "__schema": "ParameterSchema",
5324
- "location": {
5325
- "filePath": "index.ts",
5326
- "line": 94,
5327
- "character": 55
5328
- },
5329
- "name": "msg",
5330
- "type": {
5331
- "__schema": "KeywordTypeSchema",
5332
- "location": {
5333
- "filePath": "index.ts",
5334
- "line": 94,
5335
- "character": 61
5336
- },
5337
- "name": "string"
5338
- },
5339
- "isOptional": true,
5340
- "isSpread": false
5341
- }
5342
- ],
5343
- "returnType": {
5344
- "__schema": "TypePredicateSchema",
5345
- "location": {
5346
- "filePath": "index.ts",
5347
- "line": 94,
5348
- "character": 70
5349
- },
5350
- "name": "condition",
5351
- "hasAssertsModifier": true
5352
- },
5353
- "modifiers": [
5354
- "export"
5355
- ]
5356
- },
5357
- {
5358
- "__schema": "FunctionLikeSchema",
5359
- "location": {
5360
- "filePath": "index.ts",
5361
- "line": 96,
5362
- "character": 1
5363
- },
5364
- "signature": "function objectBindingElements({ prop }: {\n prop?: number | undefined;\n}): Promise<number>",
5365
- "name": "objectBindingElements",
5366
- "params": [
5367
- {
5368
- "__schema": "ParameterSchema",
5369
- "location": {
5370
- "filePath": "index.ts",
5371
- "line": 96,
5372
- "character": 45
5373
- },
5374
- "name": "{ prop = 1 }",
5375
- "type": {
5376
- "__schema": "TypeLiteralSchema",
5377
- "location": {
5378
- "filePath": "index.ts",
5379
- "line": 96,
5380
- "character": 45
5381
- },
5382
- "members": [
5383
- {
5384
- "__schema": "InferenceTypeSchema",
5385
- "location": {
5386
- "filePath": "index.ts",
5387
- "line": 96,
5388
- "character": 45
5389
- },
5390
- "name": "prop",
5391
- "type": "number"
5392
- }
5393
- ]
5394
- },
5395
- "isOptional": false,
5396
- "objectBindingNodes": [
5397
- {
5398
- "__schema": "InferenceTypeSchema",
5399
- "location": {
5400
- "filePath": "index.ts",
5401
- "line": 96,
5402
- "character": 47
5403
- },
5404
- "name": "prop",
5405
- "type": "number",
5406
- "defaultValue": "1",
5407
- "isSpread": false
5408
- }
5409
- ],
5410
- "isSpread": false
5411
- }
5412
- ],
5413
- "returnType": {
5414
- "__schema": "InferenceTypeSchema",
5415
- "location": {
5416
- "filePath": "index.ts",
5417
- "line": 96,
5418
- "character": 1
5419
- },
5420
- "type": "Promise<number>"
5421
- },
5422
- "modifiers": [
5423
- "export",
5424
- "async"
5425
- ]
5426
- },
5427
- {
5428
- "__schema": "FunctionLikeSchema",
5429
- "location": {
5430
- "filePath": "index.ts",
5431
- "line": 99,
5432
- "character": 1
5433
- },
5434
- "signature": "function arrayBindingElements([prop]: [string]): Promise<string>",
5435
- "name": "arrayBindingElements",
5436
- "params": [
5437
- {
5438
- "__schema": "ParameterSchema",
5439
- "location": {
5440
- "filePath": "index.ts",
5441
- "line": 99,
5442
- "character": 44
5443
- },
5444
- "name": "[ prop ]",
5445
- "type": {
5446
- "__schema": "TupleTypeSchema",
5447
- "location": {
5448
- "filePath": "index.ts",
5449
- "line": 99,
5450
- "character": 52
5451
- },
5452
- "elements": [
5453
- {
5454
- "__schema": "KeywordTypeSchema",
5455
- "location": {
5456
- "filePath": "index.ts",
5457
- "line": 99,
5458
- "character": 53
5459
- },
5460
- "name": "string"
5461
- }
5462
- ]
5463
- },
5464
- "isOptional": false,
5465
- "isSpread": false
5466
- }
5467
- ],
5468
- "returnType": {
5469
- "__schema": "InferenceTypeSchema",
5470
- "location": {
5471
- "filePath": "index.ts",
5472
- "line": 99,
5473
- "character": 1
5474
- },
5475
- "type": "Promise<string>"
5476
- },
5477
- "modifiers": [
5478
- "export",
5479
- "async"
5480
- ]
5481
- },
5482
- {
5483
- "__schema": "TypeSchema",
5484
- "location": {
5485
- "filePath": "index.ts",
5486
- "line": 106,
5487
- "character": 1
5488
- },
5489
- "signature": "type IndexedAccessType = {\n a: string;\n b: boolean;\n}",
5490
- "name": "IndexedAccessType",
5491
- "type": {
5492
- "__schema": "IndexedAccessSchema",
5493
- "location": {
5494
- "filePath": "index.ts",
5495
- "line": 106,
5496
- "character": 33
5497
- },
5498
- "objectType": {
5499
- "__schema": "TypeRefSchema",
5500
- "location": {
5501
- "filePath": "index.ts",
5502
- "line": 106,
5503
- "character": 33
5504
- },
5505
- "name": "config",
5506
- "internalFilePath": "index.ts"
5507
- },
5508
- "indexType": {
5509
- "__schema": "LiteralTypeSchema",
5510
- "location": {
5511
- "filePath": "index.ts",
5512
- "line": 106,
5513
- "character": 40
5514
- },
5515
- "name": "'someField'"
5516
- }
5517
- }
5518
- },
5519
- {
5520
- "__schema": "InterfaceSchema",
5521
- "location": {
5522
- "filePath": "index.ts",
5523
- "line": 109,
5524
- "character": 1
5525
- },
5526
- "signature": "interface ComputedNameWithType",
5527
- "name": "ComputedNameWithType",
5528
- "members": [
5529
- {
5530
- "__schema": "VariableLikeSchema",
5531
- "location": {
5532
- "filePath": "index.ts",
5533
- "line": 110,
5534
- "character": 3
5535
- },
5536
- "signature": "[computedName]: boolean;",
5537
- "name": "[computedName]",
5538
- "type": {
5539
- "__schema": "KeywordTypeSchema",
5540
- "location": {
5541
- "filePath": "index.ts",
5542
- "line": 110,
5543
- "character": 19
5544
- },
5545
- "name": "boolean"
5546
- },
5547
- "isOptional": false
5548
- }
5549
- ],
5550
- "extendsNodes": []
5551
- },
5552
- {
5553
- "__schema": "InterfaceSchema",
5554
- "location": {
5555
- "filePath": "index.ts",
5556
- "line": 112,
5557
- "character": 1
5558
- },
5559
- "signature": "interface ComputedNameNoType",
5560
- "name": "ComputedNameNoType",
5561
- "members": [
5562
- {
5563
- "__schema": "VariableLikeSchema",
5564
- "location": {
5565
- "filePath": "index.ts",
5566
- "line": 113,
5567
- "character": 3
5568
- },
5569
- "signature": "[computedName];",
5570
- "name": "[computedName]",
5571
- "type": {
5572
- "__schema": "InferenceTypeSchema",
5573
- "location": {
5574
- "filePath": "index.ts",
5575
- "line": 113,
5576
- "character": 3
5577
- },
5578
- "type": "any"
5579
- },
5580
- "isOptional": false
5581
- }
5582
- ],
5583
- "extendsNodes": []
5584
- },
5585
- {
5586
- "__schema": "TypeSchema",
5587
- "location": {
5588
- "filePath": "index.ts",
5589
- "line": 118,
5590
- "character": 1
5591
- },
5592
- "signature": "type templateLiteralType = \"hello world1-a hi world2\" | \"hello world1-b hi world2\"",
5593
- "name": "templateLiteralType",
5594
- "type": {
5595
- "__schema": "TemplateLiteralTypeSchema",
5596
- "location": {
5597
- "filePath": "index.ts",
5598
- "line": 118,
5599
- "character": 35
5600
- },
5601
- "head": "hello ",
5602
- "templateSpans": [
5603
- {
5604
- "__schema": "TemplateLiteralTypeSpanSchema",
5605
- "location": {
5606
- "filePath": "index.ts",
5607
- "line": 118,
5608
- "character": 44
5609
- },
5610
- "literal": " hi ",
5611
- "type": {
5612
- "__schema": "TypeRefSchema",
5613
- "location": {
5614
- "filePath": "index.ts",
5615
- "line": 118,
5616
- "character": 44
5617
- },
5618
- "name": "World1",
5619
- "internalFilePath": "index.ts"
5620
- }
5621
- },
5622
- {
5623
- "__schema": "TemplateLiteralTypeSpanSchema",
5624
- "location": {
5625
- "filePath": "index.ts",
5626
- "line": 118,
5627
- "character": 57
5628
- },
5629
- "literal": "",
5630
- "type": {
5631
- "__schema": "TypeRefSchema",
5632
- "location": {
5633
- "filePath": "index.ts",
5634
- "line": 118,
5635
- "character": 57
5636
- },
5637
- "name": "World2",
5638
- "internalFilePath": "index.ts"
5639
- }
5640
- }
5641
- ]
5642
- }
5643
- },
5644
- {
5645
- "__schema": "InterfaceSchema",
5646
- "location": {
5647
- "filePath": "index.ts",
5648
- "line": 120,
5649
- "character": 1
5650
- },
5651
- "signature": "interface CallSignatureWithTypeParams",
5652
- "name": "CallSignatureWithTypeParams",
5653
- "members": [
5654
- {
5655
- "__schema": "FunctionLikeSchema",
5656
- "location": {
5657
- "filePath": "index.ts",
5658
- "line": 121,
5659
- "character": 3
5660
- },
5661
- "signature": "(a: string): T",
5662
- "name": "",
5663
- "params": [
5664
- {
5665
- "__schema": "ParameterSchema",
5666
- "location": {
5667
- "filePath": "index.ts",
5668
- "line": 121,
5669
- "character": 7
5670
- },
5671
- "name": "a",
5672
- "type": {
5673
- "__schema": "KeywordTypeSchema",
5674
- "location": {
5675
- "filePath": "index.ts",
5676
- "line": 121,
5677
- "character": 10
5678
- },
5679
- "name": "string"
5680
- },
5681
- "isOptional": false,
5682
- "isSpread": false
5683
- }
5684
- ],
5685
- "returnType": {
5686
- "__schema": "TypeRefSchema",
5687
- "location": {
5688
- "filePath": "index.ts",
5689
- "line": 121,
5690
- "character": 19
5691
- },
5692
- "name": "T"
5693
- },
5694
- "modifiers": [],
5695
- "typeParams": [
5696
- "T"
5697
- ]
5698
- }
5699
- ],
5700
- "extendsNodes": []
5701
- },
5702
- {
5703
- "__schema": "TypeSchema",
5704
- "location": {
5705
- "filePath": "index.ts",
5706
- "line": 127,
5707
- "character": 1
5708
- },
5709
- "doc": {
5710
- "__schema": "DocSchema",
5711
- "location": {
5712
- "filePath": "index.ts",
5713
- "line": 124,
5714
- "character": 1
5715
- },
5716
- "raw": "/**\n * Conditional Generic Type\n */",
5717
- "comment": "Conditional Generic Type",
5718
- "tags": []
5719
- },
5720
- "signature": "type If<T, U, Y, N> = T extends U ? Y : N",
5721
- "name": "If",
5722
- "type": {
5723
- "__schema": "ConditionalTypeSchema",
5724
- "location": {
5725
- "filePath": "index.ts",
5726
- "line": 127,
5727
- "character": 30
5728
- },
5729
- "checkType": {
5730
- "__schema": "TypeRefSchema",
5731
- "location": {
5732
- "filePath": "index.ts",
5733
- "line": 127,
5734
- "character": 30
5735
- },
5736
- "name": "T"
5737
- },
5738
- "extendsType": {
5739
- "__schema": "TypeRefSchema",
5740
- "location": {
5741
- "filePath": "index.ts",
5742
- "line": 127,
5743
- "character": 40
5744
- },
5745
- "name": "U"
5746
- },
5747
- "trueType": {
5748
- "__schema": "TypeRefSchema",
5749
- "location": {
5750
- "filePath": "index.ts",
5751
- "line": 127,
5752
- "character": 44
5753
- },
5754
- "name": "Y"
5755
- },
5756
- "falseType": {
5757
- "__schema": "TypeRefSchema",
5758
- "location": {
5759
- "filePath": "index.ts",
5760
- "line": 127,
5761
- "character": 48
5762
- },
5763
- "name": "N"
5764
- }
5765
- }
5766
- },
5767
- {
5768
- "__schema": "FunctionLikeSchema",
5769
- "location": {
5770
- "filePath": "index.ts",
5771
- "line": 129,
5772
- "character": 1
5773
- },
5774
- "signature": "function genericFunction<T>(a: T): <T>(a: T) => void",
5775
- "name": "genericFunction",
5776
- "params": [
5777
- {
5778
- "__schema": "ParameterSchema",
5779
- "location": {
5780
- "filePath": "index.ts",
5781
- "line": 129,
5782
- "character": 36
5783
- },
5784
- "name": "a",
5785
- "type": {
5786
- "__schema": "TypeRefSchema",
5787
- "location": {
5788
- "filePath": "index.ts",
5789
- "line": 129,
5790
- "character": 39
5791
- },
5792
- "name": "T"
5793
- },
5794
- "isOptional": false,
5795
- "isSpread": false
5796
- }
5797
- ],
5798
- "returnType": {
5799
- "__schema": "InferenceTypeSchema",
5800
- "location": {
5801
- "filePath": "index.ts",
5802
- "line": 129,
5803
- "character": 1
5804
- },
5805
- "type": "<T>(a: T) => void"
5806
- },
5807
- "modifiers": [
5808
- "export"
5809
- ],
5810
- "typeParams": [
5811
- "T"
5812
- ]
5813
- },
5814
- {
5815
- "__schema": "VariableLikeSchema",
5816
- "location": {
5817
- "filePath": "index.ts",
5818
- "line": 133,
5819
- "character": 14
5820
- },
5821
- "signature": "const gfnc2: <T>(a: T) => void",
5822
- "name": "gfnc2",
5823
- "type": {
5824
- "__schema": "FunctionLikeSchema",
5825
- "location": {
5826
- "filePath": "index.ts",
5827
- "line": 133,
5828
- "character": 14
5829
- },
5830
- "signature": "const gfnc2: <T>(a: T) => void",
5831
- "name": "anonymous",
5832
- "params": [
5833
- {
5834
- "__schema": "ParameterSchema",
5835
- "location": {
5836
- "filePath": "index.ts",
5837
- "line": 133,
5838
- "character": 14
5839
- },
5840
- "name": "a",
5841
- "type": {
5842
- "__schema": "InferenceTypeSchema",
5843
- "location": {
5844
- "filePath": "index.ts",
5845
- "line": 133,
5846
- "character": 14
5847
- },
5848
- "type": "T"
5849
- },
5850
- "isOptional": false,
5851
- "isSpread": false
5852
- }
5853
- ],
5854
- "returnType": {
5855
- "__schema": "InferenceTypeSchema",
5856
- "location": {
5857
- "filePath": "index.ts",
5858
- "line": 133,
5859
- "character": 14
5860
- },
5861
- "type": "void"
5862
- },
5863
- "modifiers": []
5864
- },
5865
- "isOptional": false,
5866
- "defaultValue": "genericFunction<string>('')"
5867
- },
5868
- {
5869
- "__schema": "FunctionLikeSchema",
5870
- "location": {
5871
- "filePath": "index.ts",
5872
- "line": 135,
5873
- "character": 1
5874
- },
5875
- "signature": "function LogMethod(message: string): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void",
5876
- "name": "LogMethod",
5877
- "params": [
5878
- {
5879
- "__schema": "ParameterSchema",
5880
- "location": {
5881
- "filePath": "index.ts",
5882
- "line": 135,
5883
- "character": 27
5884
- },
5885
- "name": "message",
5886
- "type": {
5887
- "__schema": "KeywordTypeSchema",
5888
- "location": {
5889
- "filePath": "index.ts",
5890
- "line": 135,
5891
- "character": 36
5892
- },
5893
- "name": "string"
5894
- },
5895
- "isOptional": false,
5896
- "isSpread": false
5897
- }
5898
- ],
5899
- "returnType": {
5900
- "__schema": "InferenceTypeSchema",
5901
- "location": {
5902
- "filePath": "index.ts",
5903
- "line": 135,
5904
- "character": 1
5905
- },
5906
- "type": "(target: any, propertyKey: string, descriptor: PropertyDescriptor) => void"
5907
- },
5908
- "modifiers": [
5909
- "export"
5910
- ]
5911
- },
5912
- {
5913
- "__schema": "FunctionLikeSchema",
5914
- "location": {
5915
- "filePath": "index.ts",
5916
- "line": 145,
5917
- "character": 1
5918
- },
5919
- "signature": "function CustomClassDecorator(config: {\n name: string;\n description: string;\n fn?: () => string;\n class?: ClassSomething;\n arr?: [string, number, boolean, boolean, number | undefined, (a: string) => void, {\n a: string;\n b: number;\n }, ClassSomething];\n}): (target: any) => void",
5920
- "name": "CustomClassDecorator",
5921
- "params": [
5922
- {
5923
- "__schema": "ParameterSchema",
5924
- "location": {
5925
- "filePath": "index.ts",
5926
- "line": 145,
5927
- "character": 38
5928
- },
5929
- "name": "config",
5930
- "type": {
5931
- "__schema": "TypeLiteralSchema",
5932
- "location": {
5933
- "filePath": "index.ts",
5934
- "line": 145,
5935
- "character": 46
5936
- },
5937
- "members": [
5938
- {
5939
- "__schema": "VariableLikeSchema",
5940
- "location": {
5941
- "filePath": "index.ts",
5942
- "line": 146,
5943
- "character": 3
5944
- },
5945
- "signature": "(property) name: string",
5946
- "name": "name",
5947
- "type": {
5948
- "__schema": "KeywordTypeSchema",
5949
- "location": {
5950
- "filePath": "index.ts",
5951
- "line": 146,
5952
- "character": 9
5953
- },
5954
- "name": "string"
5955
- },
5956
- "isOptional": false
5957
- },
5958
- {
5959
- "__schema": "VariableLikeSchema",
5960
- "location": {
5961
- "filePath": "index.ts",
5962
- "line": 147,
5963
- "character": 3
5964
- },
5965
- "signature": "(property) description: string",
5966
- "name": "description",
5967
- "type": {
5968
- "__schema": "KeywordTypeSchema",
5969
- "location": {
5970
- "filePath": "index.ts",
5971
- "line": 147,
5972
- "character": 16
5973
- },
5974
- "name": "string"
5975
- },
5976
- "isOptional": false
5977
- },
5978
- {
5979
- "__schema": "VariableLikeSchema",
5980
- "location": {
5981
- "filePath": "index.ts",
5982
- "line": 148,
5983
- "character": 3
5984
- },
5985
- "signature": "(property) fn?: (() => string) | undefined",
5986
- "name": "fn",
5987
- "type": {
5988
- "__schema": "FunctionLikeSchema",
5989
- "location": {
5990
- "filePath": "index.ts",
5991
- "line": 148,
5992
- "character": 8
5993
- },
5994
- "signature": "(): string",
5995
- "name": "",
5996
- "params": [],
5997
- "returnType": {
5998
- "__schema": "KeywordTypeSchema",
5999
- "location": {
6000
- "filePath": "index.ts",
6001
- "line": 148,
6002
- "character": 14
6003
- },
6004
- "name": "string"
6005
- },
6006
- "modifiers": []
6007
- },
6008
- "isOptional": true
6009
- },
6010
- {
6011
- "__schema": "VariableLikeSchema",
6012
- "location": {
6013
- "filePath": "index.ts",
6014
- "line": 149,
6015
- "character": 3
6016
- },
6017
- "signature": "(property) class?: ClassSomething | undefined",
6018
- "name": "class",
6019
- "type": {
6020
- "__schema": "TypeRefSchema",
6021
- "location": {
6022
- "filePath": "index.ts",
6023
- "line": 149,
6024
- "character": 11
6025
- },
6026
- "name": "ClassSomething"
6027
- },
6028
- "isOptional": true
6029
- },
6030
- {
6031
- "__schema": "VariableLikeSchema",
6032
- "location": {
6033
- "filePath": "index.ts",
6034
- "line": 150,
6035
- "character": 3
6036
- },
6037
- "signature": "(property) arr?: [string, number, boolean, boolean, number | undefined, (a: string) => void, {\n a: string;\n b: number;\n}, ClassSomething] | undefined",
6038
- "name": "arr",
6039
- "type": {
6040
- "__schema": "TupleTypeSchema",
6041
- "location": {
6042
- "filePath": "index.ts",
6043
- "line": 150,
6044
- "character": 9
6045
- },
6046
- "elements": [
6047
- {
6048
- "__schema": "KeywordTypeSchema",
6049
- "location": {
6050
- "filePath": "index.ts",
6051
- "line": 151,
6052
- "character": 5
6053
- },
6054
- "name": "string"
6055
- },
6056
- {
6057
- "__schema": "KeywordTypeSchema",
6058
- "location": {
6059
- "filePath": "index.ts",
6060
- "line": 152,
6061
- "character": 5
6062
- },
6063
- "name": "number"
6064
- },
6065
- {
6066
- "__schema": "KeywordTypeSchema",
6067
- "location": {
6068
- "filePath": "index.ts",
6069
- "line": 153,
6070
- "character": 5
6071
- },
6072
- "name": "boolean"
6073
- },
6074
- {
6075
- "__schema": "KeywordTypeSchema",
6076
- "location": {
6077
- "filePath": "index.ts",
6078
- "line": 154,
6079
- "character": 5
6080
- },
6081
- "name": "boolean"
6082
- },
6083
- {
6084
- "__schema": "TypeUnionSchema",
6085
- "location": {
6086
- "filePath": "index.ts",
6087
- "line": 155,
6088
- "character": 5
6089
- },
6090
- "types": [
6091
- {
6092
- "__schema": "KeywordTypeSchema",
6093
- "location": {
6094
- "filePath": "index.ts",
6095
- "line": 155,
6096
- "character": 5
6097
- },
6098
- "name": "number"
6099
- },
6100
- {
6101
- "__schema": "KeywordTypeSchema",
6102
- "location": {
6103
- "filePath": "index.ts",
6104
- "line": 155,
6105
- "character": 14
6106
- },
6107
- "name": "undefined"
6108
- }
6109
- ]
6110
- },
6111
- {
6112
- "__schema": "FunctionLikeSchema",
6113
- "location": {
6114
- "filePath": "index.ts",
6115
- "line": 156,
6116
- "character": 5
6117
- },
6118
- "signature": "(a: string): void",
6119
- "name": "",
6120
- "params": [
6121
- {
6122
- "__schema": "ParameterSchema",
6123
- "location": {
6124
- "filePath": "index.ts",
6125
- "line": 156,
6126
- "character": 6
6127
- },
6128
- "name": "a",
6129
- "type": {
6130
- "__schema": "KeywordTypeSchema",
6131
- "location": {
6132
- "filePath": "index.ts",
6133
- "line": 156,
6134
- "character": 9
6135
- },
6136
- "name": "string"
6137
- },
6138
- "isOptional": false,
6139
- "isSpread": false
6140
- }
6141
- ],
6142
- "returnType": {
6143
- "__schema": "KeywordTypeSchema",
6144
- "location": {
6145
- "filePath": "index.ts",
6146
- "line": 156,
6147
- "character": 20
6148
- },
6149
- "name": "void"
6150
- },
6151
- "modifiers": []
6152
- },
6153
- {
6154
- "__schema": "TypeLiteralSchema",
6155
- "location": {
6156
- "filePath": "index.ts",
6157
- "line": 157,
6158
- "character": 5
6159
- },
6160
- "members": [
6161
- {
6162
- "__schema": "VariableLikeSchema",
6163
- "location": {
6164
- "filePath": "index.ts",
6165
- "line": 157,
6166
- "character": 7
6167
- },
6168
- "signature": "(property) a: string",
6169
- "name": "a",
6170
- "type": {
6171
- "__schema": "KeywordTypeSchema",
6172
- "location": {
6173
- "filePath": "index.ts",
6174
- "line": 157,
6175
- "character": 10
6176
- },
6177
- "name": "string"
6178
- },
6179
- "isOptional": false
6180
- },
6181
- {
6182
- "__schema": "VariableLikeSchema",
6183
- "location": {
6184
- "filePath": "index.ts",
6185
- "line": 157,
6186
- "character": 18
6187
- },
6188
- "signature": "(property) b: number",
6189
- "name": "b",
6190
- "type": {
6191
- "__schema": "KeywordTypeSchema",
6192
- "location": {
6193
- "filePath": "index.ts",
6194
- "line": 157,
6195
- "character": 21
6196
- },
6197
- "name": "number"
6198
- },
6199
- "isOptional": false
6200
- }
6201
- ]
6202
- },
6203
- {
6204
- "__schema": "TypeRefSchema",
6205
- "location": {
6206
- "filePath": "index.ts",
6207
- "line": 158,
6208
- "character": 5
6209
- },
6210
- "name": "ClassSomething"
6211
- }
6212
- ]
6213
- },
6214
- "isOptional": true
6215
- }
6216
- ]
6217
- },
6218
- "isOptional": false,
6219
- "isSpread": false
6220
- }
6221
- ],
6222
- "returnType": {
6223
- "__schema": "InferenceTypeSchema",
6224
- "location": {
6225
- "filePath": "index.ts",
6226
- "line": 145,
6227
- "character": 1
6228
- },
6229
- "type": "(target: any) => void"
6230
- },
6231
- "modifiers": [
6232
- "export"
6233
- ]
6234
- },
6235
- {
6236
- "__schema": "ClassSchema",
6237
- "location": {
6238
- "filePath": "index.ts",
6239
- "line": 166,
6240
- "character": 1
6241
- },
6242
- "signature": "class ExampleDecoratorOne",
6243
- "name": "ExampleDecoratorOne",
6244
- "members": [
6245
- {
6246
- "__schema": "FunctionLikeSchema",
6247
- "location": {
6248
- "filePath": "index.ts",
6249
- "line": 168,
6250
- "character": 3
6251
- },
6252
- "signature": "(method) ExampleDecoratorOne.exampleMethod(): void",
6253
- "name": "exampleMethod",
6254
- "params": [],
6255
- "returnType": {
6256
- "__schema": "InferenceTypeSchema",
6257
- "location": {
6258
- "filePath": "index.ts",
6259
- "line": 168,
6260
- "character": 3
6261
- },
6262
- "type": "void"
6263
- },
6264
- "modifiers": [],
6265
- "decorators": [
6266
- {
6267
- "__schema": "DecoratorSchema",
6268
- "location": {
6269
- "filePath": "index.ts",
6270
- "line": 168,
6271
- "character": 3
6272
- },
6273
- "name": "LogMethod",
6274
- "args": [
6275
- {
6276
- "__schema": "LiteralValueSchema",
6277
- "location": {
6278
- "filePath": "index.ts",
6279
- "line": 168,
6280
- "character": 14
6281
- },
6282
- "value": "This is a log message"
6283
- }
6284
- ]
6285
- }
6286
- ]
6287
- }
6288
- ],
6289
- "extendsNodes": [],
6290
- "implementNodes": [],
6291
- "decorators": [
6292
- {
6293
- "__schema": "DecoratorSchema",
6294
- "location": {
6295
- "filePath": "index.ts",
6296
- "line": 166,
6297
- "character": 1
6298
- },
6299
- "name": "CustomClassDecorator",
6300
- "args": [
6301
- {
6302
- "__schema": "ObjectLiteralExpressionSchema",
6303
- "location": {
6304
- "filePath": "index.ts",
6305
- "line": 166,
6306
- "character": 23
6307
- },
6308
- "members": [
6309
- {
6310
- "__schema": "PropertyAssignmentSchema",
6311
- "location": {
6312
- "filePath": "index.ts",
6313
- "line": 166,
6314
- "character": 25
6315
- },
6316
- "name": "name",
6317
- "value": {
6318
- "__schema": "LiteralValueSchema",
6319
- "location": {
6320
- "filePath": "index.ts",
6321
- "line": 166,
6322
- "character": 31
6323
- },
6324
- "value": "ExampleClass2"
6325
- }
6326
- },
6327
- {
6328
- "__schema": "PropertyAssignmentSchema",
6329
- "location": {
6330
- "filePath": "index.ts",
6331
- "line": 166,
6332
- "character": 48
6333
- },
6334
- "name": "description",
6335
- "value": {
6336
- "__schema": "LiteralValueSchema",
6337
- "location": {
6338
- "filePath": "index.ts",
6339
- "line": 166,
6340
- "character": 61
6341
- },
6342
- "value": "This is an example class 2"
6343
- }
6344
- }
6345
- ]
6346
- }
6347
- ]
6348
- }
6349
- ]
6350
- },
6351
- {
6352
- "__schema": "FunctionLikeSchema",
6353
- "location": {
6354
- "filePath": "index.ts",
6355
- "line": 174,
6356
- "character": 1
6357
- },
6358
- "signature": "function ValidateArgs(config: {\n type: string;\n required: boolean;\n}): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void",
6359
- "name": "ValidateArgs",
6360
- "params": [
6361
- {
6362
- "__schema": "ParameterSchema",
6363
- "location": {
6364
- "filePath": "index.ts",
6365
- "line": 174,
6366
- "character": 30
6367
- },
6368
- "name": "config",
6369
- "type": {
6370
- "__schema": "TypeLiteralSchema",
6371
- "location": {
6372
- "filePath": "index.ts",
6373
- "line": 174,
6374
- "character": 38
6375
- },
6376
- "members": [
6377
- {
6378
- "__schema": "VariableLikeSchema",
6379
- "location": {
6380
- "filePath": "index.ts",
6381
- "line": 174,
6382
- "character": 40
6383
- },
6384
- "signature": "(property) type: string",
6385
- "name": "type",
6386
- "type": {
6387
- "__schema": "KeywordTypeSchema",
6388
- "location": {
6389
- "filePath": "index.ts",
6390
- "line": 174,
6391
- "character": 46
6392
- },
6393
- "name": "string"
6394
- },
6395
- "isOptional": false
6396
- },
6397
- {
6398
- "__schema": "VariableLikeSchema",
6399
- "location": {
6400
- "filePath": "index.ts",
6401
- "line": 174,
6402
- "character": 54
6403
- },
6404
- "signature": "(property) required: boolean",
6405
- "name": "required",
6406
- "type": {
6407
- "__schema": "KeywordTypeSchema",
6408
- "location": {
6409
- "filePath": "index.ts",
6410
- "line": 174,
6411
- "character": 64
6412
- },
6413
- "name": "boolean"
6414
- },
6415
- "isOptional": false
6416
- }
6417
- ]
6418
- },
6419
- "isOptional": false,
6420
- "isSpread": false
6421
- }
6422
- ],
6423
- "returnType": {
6424
- "__schema": "InferenceTypeSchema",
6425
- "location": {
6426
- "filePath": "index.ts",
6427
- "line": 174,
6428
- "character": 1
6429
- },
6430
- "type": "(target: any, propertyKey: string, descriptor: PropertyDescriptor) => void"
6431
- },
6432
- "modifiers": [
6433
- "export"
6434
- ]
6435
- },
6436
- {
6437
- "__schema": "ClassSchema",
6438
- "location": {
6439
- "filePath": "index.ts",
6440
- "line": 189,
6441
- "character": 1
6442
- },
6443
- "signature": "class ExampleDecoratorTwo",
6444
- "name": "ExampleDecoratorTwo",
6445
- "members": [
6446
- {
6447
- "__schema": "FunctionLikeSchema",
6448
- "location": {
6449
- "filePath": "index.ts",
6450
- "line": 197,
6451
- "character": 3
6452
- },
6453
- "signature": "(method) ExampleDecoratorTwo.exampleMethod(input: string): void",
6454
- "name": "exampleMethod",
6455
- "params": [
6456
- {
6457
- "__schema": "ParameterSchema",
6458
- "location": {
6459
- "filePath": "index.ts",
6460
- "line": 198,
6461
- "character": 17
6462
- },
6463
- "name": "input",
6464
- "type": {
6465
- "__schema": "KeywordTypeSchema",
6466
- "location": {
6467
- "filePath": "index.ts",
6468
- "line": 198,
6469
- "character": 24
6470
- },
6471
- "name": "string"
6472
- },
6473
- "isOptional": false,
6474
- "isSpread": false
6475
- }
6476
- ],
6477
- "returnType": {
6478
- "__schema": "InferenceTypeSchema",
6479
- "location": {
6480
- "filePath": "index.ts",
6481
- "line": 197,
6482
- "character": 3
6483
- },
6484
- "type": "void"
6485
- },
6486
- "modifiers": [],
6487
- "decorators": [
6488
- {
6489
- "__schema": "DecoratorSchema",
6490
- "location": {
6491
- "filePath": "index.ts",
6492
- "line": 197,
6493
- "character": 3
6494
- },
6495
- "name": "ValidateArgs",
6496
- "args": [
6497
- {
6498
- "__schema": "ObjectLiteralExpressionSchema",
6499
- "location": {
6500
- "filePath": "index.ts",
6501
- "line": 197,
6502
- "character": 17
6503
- },
6504
- "members": [
6505
- {
6506
- "__schema": "PropertyAssignmentSchema",
6507
- "location": {
6508
- "filePath": "index.ts",
6509
- "line": 197,
6510
- "character": 19
6511
- },
6512
- "name": "type",
6513
- "value": {
6514
- "__schema": "LiteralValueSchema",
6515
- "location": {
6516
- "filePath": "index.ts",
6517
- "line": 197,
6518
- "character": 25
6519
- },
6520
- "value": "string"
6521
- }
6522
- },
6523
- {
6524
- "__schema": "PropertyAssignmentSchema",
6525
- "location": {
6526
- "filePath": "index.ts",
6527
- "line": 197,
6528
- "character": 35
6529
- },
6530
- "name": "required",
6531
- "value": {
6532
- "__schema": "LiteralValueSchema",
6533
- "location": {
6534
- "filePath": "index.ts",
6535
- "line": 197,
6536
- "character": 45
6537
- },
6538
- "value": "true"
6539
- }
6540
- }
6541
- ]
6542
- }
6543
- ]
6544
- }
6545
- ]
6546
- }
6547
- ],
6548
- "extendsNodes": [],
6549
- "implementNodes": [],
6550
- "decorators": [
6551
- {
6552
- "__schema": "DecoratorSchema",
6553
- "location": {
6554
- "filePath": "index.ts",
6555
- "line": 189,
6556
- "character": 1
6557
- },
6558
- "name": "CustomClassDecorator",
6559
- "args": [
6560
- {
6561
- "__schema": "ObjectLiteralExpressionSchema",
6562
- "location": {
6563
- "filePath": "index.ts",
6564
- "line": 189,
6565
- "character": 23
6566
- },
6567
- "members": [
6568
- {
6569
- "__schema": "PropertyAssignmentSchema",
6570
- "location": {
6571
- "filePath": "index.ts",
6572
- "line": 190,
6573
- "character": 3
6574
- },
6575
- "name": "name",
6576
- "value": {
6577
- "__schema": "LiteralValueSchema",
6578
- "location": {
6579
- "filePath": "index.ts",
6580
- "line": 190,
6581
- "character": 9
6582
- },
6583
- "value": "ExampleClass"
6584
- }
6585
- },
6586
- {
6587
- "__schema": "PropertyAssignmentSchema",
6588
- "location": {
6589
- "filePath": "index.ts",
6590
- "line": 191,
6591
- "character": 3
6592
- },
6593
- "name": "description",
6594
- "value": {
6595
- "__schema": "LiteralValueSchema",
6596
- "location": {
6597
- "filePath": "index.ts",
6598
- "line": 191,
6599
- "character": 16
6600
- },
6601
- "value": "This is an example class"
6602
- }
6603
- },
6604
- {
6605
- "__schema": "PropertyAssignmentSchema",
6606
- "location": {
6607
- "filePath": "index.ts",
6608
- "line": 192,
6609
- "character": 3
6610
- },
6611
- "name": "fn",
6612
- "value": {
6613
- "__schema": "FunctionLikeSchema",
6614
- "location": {
6615
- "filePath": "index.ts",
6616
- "line": 192,
6617
- "character": 7
6618
- },
6619
- "signature": "function(): string",
6620
- "name": "",
6621
- "params": [],
6622
- "returnType": {
6623
- "__schema": "InferenceTypeSchema",
6624
- "location": {
6625
- "filePath": "index.ts",
6626
- "line": 192,
6627
- "character": 7
6628
- },
6629
- "type": "string"
6630
- },
6631
- "modifiers": []
6632
- }
6633
- },
6634
- {
6635
- "__schema": "PropertyAssignmentSchema",
6636
- "location": {
6637
- "filePath": "index.ts",
6638
- "line": 193,
6639
- "character": 3
6640
- },
6641
- "name": "class",
6642
- "value": {
6643
- "__schema": "LiteralValueSchema",
6644
- "location": {
6645
- "filePath": "index.ts",
6646
- "line": 193,
6647
- "character": 10
6648
- },
6649
- "value": "new ClassSomething('dsa')"
6650
- }
6651
- },
6652
- {
6653
- "__schema": "PropertyAssignmentSchema",
6654
- "location": {
6655
- "filePath": "index.ts",
6656
- "line": 194,
6657
- "character": 3
6658
- },
6659
- "name": "arr",
6660
- "value": {
6661
- "__schema": "ArrayLiteralExpressionSchema",
6662
- "location": {
6663
- "filePath": "index.ts",
6664
- "line": 194,
6665
- "character": 8
6666
- },
6667
- "members": [
6668
- {
6669
- "__schema": "LiteralValueSchema",
6670
- "location": {
6671
- "filePath": "index.ts",
6672
- "line": 194,
6673
- "character": 9
6674
- },
6675
- "value": "hi"
6676
- },
6677
- {
6678
- "__schema": "LiteralValueSchema",
6679
- "location": {
6680
- "filePath": "index.ts",
6681
- "line": 194,
6682
- "character": 15
6683
- },
6684
- "value": "5"
6685
- },
6686
- {
6687
- "__schema": "LiteralValueSchema",
6688
- "location": {
6689
- "filePath": "index.ts",
6690
- "line": 194,
6691
- "character": 18
6692
- },
6693
- "value": "true"
6694
- },
6695
- {
6696
- "__schema": "LiteralValueSchema",
6697
- "location": {
6698
- "filePath": "index.ts",
6699
- "line": 194,
6700
- "character": 24
6701
- },
6702
- "value": "false"
6703
- },
6704
- {
6705
- "__schema": "InferenceTypeSchema",
6706
- "location": {
6707
- "filePath": "index.ts",
6708
- "line": 194,
6709
- "character": 31
6710
- },
6711
- "type": "undefined"
6712
- },
6713
- {
6714
- "__schema": "FunctionLikeSchema",
6715
- "location": {
6716
- "filePath": "index.ts",
6717
- "line": 194,
6718
- "character": 42
6719
- },
6720
- "signature": "function(): void",
6721
- "name": "",
6722
- "params": [],
6723
- "returnType": {
6724
- "__schema": "InferenceTypeSchema",
6725
- "location": {
6726
- "filePath": "index.ts",
6727
- "line": 194,
6728
- "character": 42
6729
- },
6730
- "type": "void"
6731
- },
6732
- "modifiers": []
6733
- },
6734
- {
6735
- "__schema": "ObjectLiteralExpressionSchema",
6736
- "location": {
6737
- "filePath": "index.ts",
6738
- "line": 194,
6739
- "character": 52
6740
- },
6741
- "members": [
6742
- {
6743
- "__schema": "PropertyAssignmentSchema",
6744
- "location": {
6745
- "filePath": "index.ts",
6746
- "line": 194,
6747
- "character": 54
6748
- },
6749
- "name": "a",
6750
- "value": {
6751
- "__schema": "LiteralValueSchema",
6752
- "location": {
6753
- "filePath": "index.ts",
6754
- "line": 194,
6755
- "character": 57
6756
- },
6757
- "value": "hi"
6758
- }
6759
- },
6760
- {
6761
- "__schema": "PropertyAssignmentSchema",
6762
- "location": {
6763
- "filePath": "index.ts",
6764
- "line": 194,
6765
- "character": 63
6766
- },
6767
- "name": "b",
6768
- "value": {
6769
- "__schema": "LiteralValueSchema",
6770
- "location": {
6771
- "filePath": "index.ts",
6772
- "line": 194,
6773
- "character": 66
6774
- },
6775
- "value": "5"
6776
- }
6777
- }
6778
- ]
6779
- },
6780
- {
6781
- "__schema": "LiteralValueSchema",
6782
- "location": {
6783
- "filePath": "index.ts",
6784
- "line": 194,
6785
- "character": 71
6786
- },
6787
- "value": "new ClassSomething('dsa')"
6788
- }
6789
- ]
6790
- }
6791
- }
6792
- ]
6793
- }
6794
- ]
6795
- }
6796
- ]
6797
- }
6798
- ],
6799
- "internals": [
6800
- {
6801
- "__schema": "ClassSchema",
6802
- "location": {
6803
- "filePath": "index.ts",
6804
- "line": 34,
6805
- "character": 1
6806
- },
6807
- "signature": "class Foo",
6808
- "name": "Foo",
6809
- "members": [],
6810
- "extendsNodes": [],
6811
- "implementNodes": []
6812
- },
6813
- {
6814
- "__schema": "ClassSchema",
6815
- "location": {
6816
- "filePath": "index.ts",
6817
- "line": 36,
6818
- "character": 1
6819
- },
6820
- "signature": "class ClassSomething",
6821
- "name": "ClassSomething",
6822
- "members": [
6823
- {
6824
- "__schema": "VariableLikeSchema",
6825
- "location": {
6826
- "filePath": "index.ts",
6827
- "line": 37,
6828
- "character": 3
6829
- },
6830
- "signature": "(property) ClassSomething.app: string",
6831
- "name": "app",
6832
- "type": {
6833
- "__schema": "InferenceTypeSchema",
6834
- "location": {
6835
- "filePath": "index.ts",
6836
- "line": 37,
6837
- "character": 3
6838
- },
6839
- "type": "string"
6840
- },
6841
- "isOptional": true,
6842
- "defaultValue": "''"
6843
- },
6844
- {
6845
- "__schema": "ConstructorSchema",
6846
- "location": {
6847
- "filePath": "index.ts",
6848
- "line": 38,
6849
- "character": 3
6850
- },
6851
- "signature": "constructor ClassSomething(da: \"dsa\"): ClassSomething",
6852
- "name": "constructor",
6853
- "params": [
6854
- {
6855
- "__schema": "ParameterSchema",
6856
- "location": {
6857
- "filePath": "index.ts",
6858
- "line": 38,
6859
- "character": 15
6860
- },
6861
- "name": "da",
6862
- "type": {
6863
- "__schema": "LiteralTypeSchema",
6864
- "location": {
6865
- "filePath": "index.ts",
6866
- "line": 38,
6867
- "character": 28
6868
- },
6869
- "name": "'dsa'"
6870
- },
6871
- "isOptional": false,
6872
- "isSpread": false
6873
- }
6874
- ],
6875
- "returnType": {
6876
- "__schema": "ThisTypeSchema",
6877
- "location": {
6878
- "filePath": "index.ts",
6879
- "line": 36,
6880
- "character": 1
6881
- },
6882
- "name": "ClassSomething"
6883
- },
6884
- "modifiers": []
6885
- },
6886
- {
6887
- "__schema": "FunctionLikeSchema",
6888
- "location": {
6889
- "filePath": "index.ts",
6890
- "line": 40,
6891
- "character": 3
6892
- },
6893
- "signature": "(method) ClassSomething.a(): Foo",
6894
- "name": "a",
6895
- "params": [],
6896
- "returnType": {
6897
- "__schema": "TypeRefSchema",
6898
- "location": {
6899
- "filePath": "index.ts",
6900
- "line": 40,
6901
- "character": 3
6902
- },
6903
- "name": "Foo",
6904
- "internalFilePath": "index.ts"
6905
- },
6906
- "modifiers": []
6907
- },
6908
- {
6909
- "__schema": "GetAccessorSchema",
6910
- "location": {
6911
- "filePath": "index.ts",
6912
- "line": 43,
6913
- "character": 3
6914
- },
6915
- "signature": "(getter) ClassSomething.getter: string",
6916
- "name": "getter",
6917
- "type": {
6918
- "__schema": "InferenceTypeSchema",
6919
- "location": {
6920
- "filePath": "index.ts",
6921
- "line": 43,
6922
- "character": 3
6923
- },
6924
- "type": "string"
6925
- }
6926
- },
6927
- {
6928
- "__schema": "SetAccessorSchema",
6929
- "location": {
6930
- "filePath": "index.ts",
6931
- "line": 47,
6932
- "character": 3
6933
- },
6934
- "signature": "(setter) ClassSomething.setter: boolean",
6935
- "name": "setter",
6936
- "param": {
6937
- "__schema": "ParameterSchema",
6938
- "location": {
6939
- "filePath": "index.ts",
6940
- "line": 47,
6941
- "character": 14
6942
- },
6943
- "name": "a",
6944
- "type": {
6945
- "__schema": "KeywordTypeSchema",
6946
- "location": {
6947
- "filePath": "index.ts",
6948
- "line": 47,
6949
- "character": 17
6950
- },
6951
- "name": "boolean"
6952
- },
6953
- "isOptional": false,
6954
- "isSpread": false
6955
- }
6956
- }
6957
- ],
6958
- "extendsNodes": [],
6959
- "implementNodes": []
6960
- },
6961
- {
6962
- "__schema": "ModuleSchema",
6963
- "location": {
6964
- "filePath": "index.ts",
6965
- "line": 59,
6966
- "character": 1
6967
- },
6968
- "exports": [
6969
- {
6970
- "__schema": "VariableLikeSchema",
6971
- "location": {
6972
- "filePath": "index.ts",
6973
- "line": 59,
6974
- "character": 7
6975
- },
6976
- "signature": "const obj: {\n a: number;\n b: number;\n}",
6977
- "name": "obj",
6978
- "type": {
6979
- "__schema": "ArrayLiteralExpressionSchema",
6980
- "location": {
6981
- "filePath": "index.ts",
6982
- "line": 59,
6983
- "character": 7
3767
+ "line": 59,
3768
+ "character": 13
6984
3769
  },
6985
3770
  "members": [
6986
3771
  {
6987
- "__schema": "InferenceTypeSchema",
3772
+ "__schema": "PropertyAssignmentSchema",
6988
3773
  "location": {
6989
3774
  "filePath": "index.ts",
6990
3775
  "line": 59,
6991
- "character": 7
3776
+ "character": 15
6992
3777
  },
6993
- "type": "a: number"
3778
+ "name": "a",
3779
+ "value": {
3780
+ "__schema": "LiteralValueSchema",
3781
+ "location": {
3782
+ "filePath": "index.ts",
3783
+ "line": 59,
3784
+ "character": 18
3785
+ },
3786
+ "value": "1"
3787
+ }
6994
3788
  },
6995
3789
  {
6996
- "__schema": "InferenceTypeSchema",
3790
+ "__schema": "PropertyAssignmentSchema",
6997
3791
  "location": {
6998
3792
  "filePath": "index.ts",
6999
3793
  "line": 59,
7000
- "character": 7
3794
+ "character": 21
7001
3795
  },
7002
- "type": "b: number"
3796
+ "name": "b",
3797
+ "value": {
3798
+ "__schema": "LiteralValueSchema",
3799
+ "location": {
3800
+ "filePath": "index.ts",
3801
+ "line": 59,
3802
+ "character": 24
3803
+ },
3804
+ "value": "2"
3805
+ }
7003
3806
  }
7004
3807
  ]
7005
3808
  },
@@ -7048,12 +3851,16 @@
7048
3851
  "__schema": "ClassSchema",
7049
3852
  "location": {
7050
3853
  "filePath": "index.ts",
7051
- "line": 83,
3854
+ "line": 85,
7052
3855
  "character": 1
7053
3856
  },
7054
- "signature": "class T1",
7055
- "name": "T1",
3857
+ "signature": "class T3<T, K>",
3858
+ "name": "T3",
7056
3859
  "members": [],
3860
+ "typeParams": [
3861
+ "T",
3862
+ "K"
3863
+ ],
7057
3864
  "extendsNodes": [],
7058
3865
  "implementNodes": []
7059
3866
  },
@@ -7061,11 +3868,11 @@
7061
3868
  "__schema": "ClassSchema",
7062
3869
  "location": {
7063
3870
  "filePath": "index.ts",
7064
- "line": 84,
3871
+ "line": 83,
7065
3872
  "character": 1
7066
3873
  },
7067
- "signature": "class T2",
7068
- "name": "T2",
3874
+ "signature": "class T1",
3875
+ "name": "T1",
7069
3876
  "members": [],
7070
3877
  "extendsNodes": [],
7071
3878
  "implementNodes": []
@@ -7074,16 +3881,12 @@
7074
3881
  "__schema": "ClassSchema",
7075
3882
  "location": {
7076
3883
  "filePath": "index.ts",
7077
- "line": 85,
3884
+ "line": 84,
7078
3885
  "character": 1
7079
3886
  },
7080
- "signature": "class T3<T, K>",
7081
- "name": "T3",
3887
+ "signature": "class T2",
3888
+ "name": "T2",
7082
3889
  "members": [],
7083
- "typeParams": [
7084
- "T",
7085
- "K"
7086
- ],
7087
3890
  "extendsNodes": [],
7088
3891
  "implementNodes": []
7089
3892
  },
@@ -7161,38 +3964,6 @@
7161
3964
  ],
7162
3965
  "extendsNodes": []
7163
3966
  },
7164
- {
7165
- "__schema": "ModuleSchema",
7166
- "location": {
7167
- "filePath": "index.ts",
7168
- "line": 108,
7169
- "character": 1
7170
- },
7171
- "exports": [
7172
- {
7173
- "__schema": "VariableLikeSchema",
7174
- "location": {
7175
- "filePath": "index.ts",
7176
- "line": 108,
7177
- "character": 7
7178
- },
7179
- "signature": "const computedName: \"str\"",
7180
- "name": "computedName",
7181
- "type": {
7182
- "__schema": "InferenceTypeSchema",
7183
- "location": {
7184
- "filePath": "index.ts",
7185
- "line": 108,
7186
- "character": 7
7187
- },
7188
- "type": "\"str\""
7189
- },
7190
- "isOptional": false,
7191
- "defaultValue": "'str'"
7192
- }
7193
- ],
7194
- "internals": []
7195
- },
7196
3967
  {
7197
3968
  "__schema": "TypeSchema",
7198
3969
  "location": {