@teambit/schema 1.0.167 → 1.0.168
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/artifacts/__bit_junit.xml +2 -2
- package/artifacts/preview/teambit_semantics_schema-preview.js +1 -1
- package/artifacts/schema.json +5 -5
- package/dist/mock/button/index.d.ts +30 -0
- package/dist/mock/button/index.js +67 -2
- package/dist/mock/button/index.js.map +1 -1
- package/dist/mock/button-schemas.json +930 -0
- package/dist/preview-1708259356169.js +8 -0
- package/mock/button/index.ts +68 -0
- package/mock/button-schemas.json +930 -0
- package/package.json +11 -11
- package/dist/preview-1707967207539.js +0 -8
|
@@ -1957,6 +1957,936 @@
|
|
|
1957
1957
|
},
|
|
1958
1958
|
"isOptional": false,
|
|
1959
1959
|
"defaultValue": "genericFunction<string>('')"
|
|
1960
|
+
},
|
|
1961
|
+
{
|
|
1962
|
+
"__schema": "FunctionLikeSchema",
|
|
1963
|
+
"location": {
|
|
1964
|
+
"filePath": "index.ts",
|
|
1965
|
+
"line": 135,
|
|
1966
|
+
"character": 1
|
|
1967
|
+
},
|
|
1968
|
+
"signature": "function LogMethod(message: string): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void",
|
|
1969
|
+
"name": "LogMethod",
|
|
1970
|
+
"params": [
|
|
1971
|
+
{
|
|
1972
|
+
"__schema": "ParameterSchema",
|
|
1973
|
+
"location": {
|
|
1974
|
+
"filePath": "index.ts",
|
|
1975
|
+
"line": 135,
|
|
1976
|
+
"character": 27
|
|
1977
|
+
},
|
|
1978
|
+
"name": "message",
|
|
1979
|
+
"type": {
|
|
1980
|
+
"__schema": "KeywordTypeSchema",
|
|
1981
|
+
"location": {
|
|
1982
|
+
"filePath": "index.ts",
|
|
1983
|
+
"line": 135,
|
|
1984
|
+
"character": 36
|
|
1985
|
+
},
|
|
1986
|
+
"name": "string"
|
|
1987
|
+
},
|
|
1988
|
+
"isOptional": false,
|
|
1989
|
+
"isSpread": false
|
|
1990
|
+
}
|
|
1991
|
+
],
|
|
1992
|
+
"returnType": {
|
|
1993
|
+
"__schema": "InferenceTypeSchema",
|
|
1994
|
+
"location": {
|
|
1995
|
+
"filePath": "index.ts",
|
|
1996
|
+
"line": 135,
|
|
1997
|
+
"character": 1
|
|
1998
|
+
},
|
|
1999
|
+
"type": "(target: any, propertyKey: string, descriptor: PropertyDescriptor) => void"
|
|
2000
|
+
},
|
|
2001
|
+
"modifiers": [
|
|
2002
|
+
"export"
|
|
2003
|
+
]
|
|
2004
|
+
},
|
|
2005
|
+
{
|
|
2006
|
+
"__schema": "FunctionLikeSchema",
|
|
2007
|
+
"location": {
|
|
2008
|
+
"filePath": "index.ts",
|
|
2009
|
+
"line": 145,
|
|
2010
|
+
"character": 1
|
|
2011
|
+
},
|
|
2012
|
+
"signature": "function CustomClassDecorator(config: {\n name: string;\n description: string;\n fn?: (() => string) | undefined;\n class?: ClassSomething | undefined;\n arr?: [string, number, boolean, boolean, number | undefined, (a: string) => void, {\n a: string;\n b: number;\n }, ClassSomething] | undefined;\n}): (target: any) => void",
|
|
2013
|
+
"name": "CustomClassDecorator",
|
|
2014
|
+
"params": [
|
|
2015
|
+
{
|
|
2016
|
+
"__schema": "ParameterSchema",
|
|
2017
|
+
"location": {
|
|
2018
|
+
"filePath": "index.ts",
|
|
2019
|
+
"line": 145,
|
|
2020
|
+
"character": 38
|
|
2021
|
+
},
|
|
2022
|
+
"name": "config",
|
|
2023
|
+
"type": {
|
|
2024
|
+
"__schema": "TypeLiteralSchema",
|
|
2025
|
+
"location": {
|
|
2026
|
+
"filePath": "index.ts",
|
|
2027
|
+
"line": 145,
|
|
2028
|
+
"character": 46
|
|
2029
|
+
},
|
|
2030
|
+
"members": [
|
|
2031
|
+
{
|
|
2032
|
+
"__schema": "VariableLikeSchema",
|
|
2033
|
+
"location": {
|
|
2034
|
+
"filePath": "index.ts",
|
|
2035
|
+
"line": 146,
|
|
2036
|
+
"character": 3
|
|
2037
|
+
},
|
|
2038
|
+
"signature": "(property) name: string",
|
|
2039
|
+
"name": "name",
|
|
2040
|
+
"type": {
|
|
2041
|
+
"__schema": "KeywordTypeSchema",
|
|
2042
|
+
"location": {
|
|
2043
|
+
"filePath": "index.ts",
|
|
2044
|
+
"line": 146,
|
|
2045
|
+
"character": 9
|
|
2046
|
+
},
|
|
2047
|
+
"name": "string"
|
|
2048
|
+
},
|
|
2049
|
+
"isOptional": false
|
|
2050
|
+
},
|
|
2051
|
+
{
|
|
2052
|
+
"__schema": "VariableLikeSchema",
|
|
2053
|
+
"location": {
|
|
2054
|
+
"filePath": "index.ts",
|
|
2055
|
+
"line": 147,
|
|
2056
|
+
"character": 3
|
|
2057
|
+
},
|
|
2058
|
+
"signature": "(property) description: string",
|
|
2059
|
+
"name": "description",
|
|
2060
|
+
"type": {
|
|
2061
|
+
"__schema": "KeywordTypeSchema",
|
|
2062
|
+
"location": {
|
|
2063
|
+
"filePath": "index.ts",
|
|
2064
|
+
"line": 147,
|
|
2065
|
+
"character": 16
|
|
2066
|
+
},
|
|
2067
|
+
"name": "string"
|
|
2068
|
+
},
|
|
2069
|
+
"isOptional": false
|
|
2070
|
+
},
|
|
2071
|
+
{
|
|
2072
|
+
"__schema": "VariableLikeSchema",
|
|
2073
|
+
"location": {
|
|
2074
|
+
"filePath": "index.ts",
|
|
2075
|
+
"line": 148,
|
|
2076
|
+
"character": 3
|
|
2077
|
+
},
|
|
2078
|
+
"signature": "(property) fn?: (() => string) | undefined",
|
|
2079
|
+
"name": "fn",
|
|
2080
|
+
"type": {
|
|
2081
|
+
"__schema": "FunctionLikeSchema",
|
|
2082
|
+
"location": {
|
|
2083
|
+
"filePath": "index.ts",
|
|
2084
|
+
"line": 148,
|
|
2085
|
+
"character": 8
|
|
2086
|
+
},
|
|
2087
|
+
"signature": "(): string",
|
|
2088
|
+
"name": "",
|
|
2089
|
+
"params": [],
|
|
2090
|
+
"returnType": {
|
|
2091
|
+
"__schema": "KeywordTypeSchema",
|
|
2092
|
+
"location": {
|
|
2093
|
+
"filePath": "index.ts",
|
|
2094
|
+
"line": 148,
|
|
2095
|
+
"character": 14
|
|
2096
|
+
},
|
|
2097
|
+
"name": "string"
|
|
2098
|
+
},
|
|
2099
|
+
"modifiers": []
|
|
2100
|
+
},
|
|
2101
|
+
"isOptional": true
|
|
2102
|
+
},
|
|
2103
|
+
{
|
|
2104
|
+
"__schema": "VariableLikeSchema",
|
|
2105
|
+
"location": {
|
|
2106
|
+
"filePath": "index.ts",
|
|
2107
|
+
"line": 149,
|
|
2108
|
+
"character": 3
|
|
2109
|
+
},
|
|
2110
|
+
"signature": "(property) class?: ClassSomething | undefined",
|
|
2111
|
+
"name": "class",
|
|
2112
|
+
"type": {
|
|
2113
|
+
"__schema": "TypeRefSchema",
|
|
2114
|
+
"location": {
|
|
2115
|
+
"filePath": "index.ts",
|
|
2116
|
+
"line": 149,
|
|
2117
|
+
"character": 11
|
|
2118
|
+
},
|
|
2119
|
+
"name": "ClassSomething"
|
|
2120
|
+
},
|
|
2121
|
+
"isOptional": true
|
|
2122
|
+
},
|
|
2123
|
+
{
|
|
2124
|
+
"__schema": "VariableLikeSchema",
|
|
2125
|
+
"location": {
|
|
2126
|
+
"filePath": "index.ts",
|
|
2127
|
+
"line": 150,
|
|
2128
|
+
"character": 3
|
|
2129
|
+
},
|
|
2130
|
+
"signature": "(property) arr?: [string, number, boolean, boolean, number | undefined, (a: string) => void, {\n a: string;\n b: number;\n}, ClassSomething] | undefined",
|
|
2131
|
+
"name": "arr",
|
|
2132
|
+
"type": {
|
|
2133
|
+
"__schema": "TupleTypeSchema",
|
|
2134
|
+
"location": {
|
|
2135
|
+
"filePath": "index.ts",
|
|
2136
|
+
"line": 150,
|
|
2137
|
+
"character": 9
|
|
2138
|
+
},
|
|
2139
|
+
"elements": [
|
|
2140
|
+
{
|
|
2141
|
+
"__schema": "KeywordTypeSchema",
|
|
2142
|
+
"location": {
|
|
2143
|
+
"filePath": "index.ts",
|
|
2144
|
+
"line": 151,
|
|
2145
|
+
"character": 5
|
|
2146
|
+
},
|
|
2147
|
+
"name": "string"
|
|
2148
|
+
},
|
|
2149
|
+
{
|
|
2150
|
+
"__schema": "KeywordTypeSchema",
|
|
2151
|
+
"location": {
|
|
2152
|
+
"filePath": "index.ts",
|
|
2153
|
+
"line": 152,
|
|
2154
|
+
"character": 5
|
|
2155
|
+
},
|
|
2156
|
+
"name": "number"
|
|
2157
|
+
},
|
|
2158
|
+
{
|
|
2159
|
+
"__schema": "KeywordTypeSchema",
|
|
2160
|
+
"location": {
|
|
2161
|
+
"filePath": "index.ts",
|
|
2162
|
+
"line": 153,
|
|
2163
|
+
"character": 5
|
|
2164
|
+
},
|
|
2165
|
+
"name": "boolean"
|
|
2166
|
+
},
|
|
2167
|
+
{
|
|
2168
|
+
"__schema": "KeywordTypeSchema",
|
|
2169
|
+
"location": {
|
|
2170
|
+
"filePath": "index.ts",
|
|
2171
|
+
"line": 154,
|
|
2172
|
+
"character": 5
|
|
2173
|
+
},
|
|
2174
|
+
"name": "boolean"
|
|
2175
|
+
},
|
|
2176
|
+
{
|
|
2177
|
+
"__schema": "TypeUnionSchema",
|
|
2178
|
+
"location": {
|
|
2179
|
+
"filePath": "index.ts",
|
|
2180
|
+
"line": 155,
|
|
2181
|
+
"character": 5
|
|
2182
|
+
},
|
|
2183
|
+
"types": [
|
|
2184
|
+
{
|
|
2185
|
+
"__schema": "KeywordTypeSchema",
|
|
2186
|
+
"location": {
|
|
2187
|
+
"filePath": "index.ts",
|
|
2188
|
+
"line": 155,
|
|
2189
|
+
"character": 5
|
|
2190
|
+
},
|
|
2191
|
+
"name": "number"
|
|
2192
|
+
},
|
|
2193
|
+
{
|
|
2194
|
+
"__schema": "KeywordTypeSchema",
|
|
2195
|
+
"location": {
|
|
2196
|
+
"filePath": "index.ts",
|
|
2197
|
+
"line": 155,
|
|
2198
|
+
"character": 14
|
|
2199
|
+
},
|
|
2200
|
+
"name": "undefined"
|
|
2201
|
+
}
|
|
2202
|
+
]
|
|
2203
|
+
},
|
|
2204
|
+
{
|
|
2205
|
+
"__schema": "FunctionLikeSchema",
|
|
2206
|
+
"location": {
|
|
2207
|
+
"filePath": "index.ts",
|
|
2208
|
+
"line": 156,
|
|
2209
|
+
"character": 5
|
|
2210
|
+
},
|
|
2211
|
+
"signature": "(a: string): void",
|
|
2212
|
+
"name": "",
|
|
2213
|
+
"params": [
|
|
2214
|
+
{
|
|
2215
|
+
"__schema": "ParameterSchema",
|
|
2216
|
+
"location": {
|
|
2217
|
+
"filePath": "index.ts",
|
|
2218
|
+
"line": 156,
|
|
2219
|
+
"character": 6
|
|
2220
|
+
},
|
|
2221
|
+
"name": "a",
|
|
2222
|
+
"type": {
|
|
2223
|
+
"__schema": "KeywordTypeSchema",
|
|
2224
|
+
"location": {
|
|
2225
|
+
"filePath": "index.ts",
|
|
2226
|
+
"line": 156,
|
|
2227
|
+
"character": 9
|
|
2228
|
+
},
|
|
2229
|
+
"name": "string"
|
|
2230
|
+
},
|
|
2231
|
+
"isOptional": false,
|
|
2232
|
+
"isSpread": false
|
|
2233
|
+
}
|
|
2234
|
+
],
|
|
2235
|
+
"returnType": {
|
|
2236
|
+
"__schema": "KeywordTypeSchema",
|
|
2237
|
+
"location": {
|
|
2238
|
+
"filePath": "index.ts",
|
|
2239
|
+
"line": 156,
|
|
2240
|
+
"character": 20
|
|
2241
|
+
},
|
|
2242
|
+
"name": "void"
|
|
2243
|
+
},
|
|
2244
|
+
"modifiers": []
|
|
2245
|
+
},
|
|
2246
|
+
{
|
|
2247
|
+
"__schema": "TypeLiteralSchema",
|
|
2248
|
+
"location": {
|
|
2249
|
+
"filePath": "index.ts",
|
|
2250
|
+
"line": 157,
|
|
2251
|
+
"character": 5
|
|
2252
|
+
},
|
|
2253
|
+
"members": [
|
|
2254
|
+
{
|
|
2255
|
+
"__schema": "VariableLikeSchema",
|
|
2256
|
+
"location": {
|
|
2257
|
+
"filePath": "index.ts",
|
|
2258
|
+
"line": 157,
|
|
2259
|
+
"character": 7
|
|
2260
|
+
},
|
|
2261
|
+
"signature": "(property) a: string",
|
|
2262
|
+
"name": "a",
|
|
2263
|
+
"type": {
|
|
2264
|
+
"__schema": "KeywordTypeSchema",
|
|
2265
|
+
"location": {
|
|
2266
|
+
"filePath": "index.ts",
|
|
2267
|
+
"line": 157,
|
|
2268
|
+
"character": 10
|
|
2269
|
+
},
|
|
2270
|
+
"name": "string"
|
|
2271
|
+
},
|
|
2272
|
+
"isOptional": false
|
|
2273
|
+
},
|
|
2274
|
+
{
|
|
2275
|
+
"__schema": "VariableLikeSchema",
|
|
2276
|
+
"location": {
|
|
2277
|
+
"filePath": "index.ts",
|
|
2278
|
+
"line": 157,
|
|
2279
|
+
"character": 18
|
|
2280
|
+
},
|
|
2281
|
+
"signature": "(property) b: number",
|
|
2282
|
+
"name": "b",
|
|
2283
|
+
"type": {
|
|
2284
|
+
"__schema": "KeywordTypeSchema",
|
|
2285
|
+
"location": {
|
|
2286
|
+
"filePath": "index.ts",
|
|
2287
|
+
"line": 157,
|
|
2288
|
+
"character": 21
|
|
2289
|
+
},
|
|
2290
|
+
"name": "number"
|
|
2291
|
+
},
|
|
2292
|
+
"isOptional": false
|
|
2293
|
+
}
|
|
2294
|
+
]
|
|
2295
|
+
},
|
|
2296
|
+
{
|
|
2297
|
+
"__schema": "TypeRefSchema",
|
|
2298
|
+
"location": {
|
|
2299
|
+
"filePath": "index.ts",
|
|
2300
|
+
"line": 158,
|
|
2301
|
+
"character": 5
|
|
2302
|
+
},
|
|
2303
|
+
"name": "ClassSomething"
|
|
2304
|
+
}
|
|
2305
|
+
]
|
|
2306
|
+
},
|
|
2307
|
+
"isOptional": true
|
|
2308
|
+
}
|
|
2309
|
+
]
|
|
2310
|
+
},
|
|
2311
|
+
"isOptional": false,
|
|
2312
|
+
"isSpread": false
|
|
2313
|
+
}
|
|
2314
|
+
],
|
|
2315
|
+
"returnType": {
|
|
2316
|
+
"__schema": "InferenceTypeSchema",
|
|
2317
|
+
"location": {
|
|
2318
|
+
"filePath": "index.ts",
|
|
2319
|
+
"line": 145,
|
|
2320
|
+
"character": 1
|
|
2321
|
+
},
|
|
2322
|
+
"type": "(target: any) => void"
|
|
2323
|
+
},
|
|
2324
|
+
"modifiers": [
|
|
2325
|
+
"export"
|
|
2326
|
+
]
|
|
2327
|
+
},
|
|
2328
|
+
{
|
|
2329
|
+
"__schema": "ClassSchema",
|
|
2330
|
+
"location": {
|
|
2331
|
+
"filePath": "index.ts",
|
|
2332
|
+
"line": 166,
|
|
2333
|
+
"character": 1
|
|
2334
|
+
},
|
|
2335
|
+
"signature": "class ExampleDecoratorOne",
|
|
2336
|
+
"name": "ExampleDecoratorOne",
|
|
2337
|
+
"members": [
|
|
2338
|
+
{
|
|
2339
|
+
"__schema": "FunctionLikeSchema",
|
|
2340
|
+
"location": {
|
|
2341
|
+
"filePath": "index.ts",
|
|
2342
|
+
"line": 168,
|
|
2343
|
+
"character": 3
|
|
2344
|
+
},
|
|
2345
|
+
"signature": "(method) ExampleDecoratorOne.exampleMethod(): void",
|
|
2346
|
+
"name": "exampleMethod",
|
|
2347
|
+
"params": [],
|
|
2348
|
+
"returnType": {
|
|
2349
|
+
"__schema": "InferenceTypeSchema",
|
|
2350
|
+
"location": {
|
|
2351
|
+
"filePath": "index.ts",
|
|
2352
|
+
"line": 168,
|
|
2353
|
+
"character": 3
|
|
2354
|
+
},
|
|
2355
|
+
"type": "void"
|
|
2356
|
+
},
|
|
2357
|
+
"modifiers": [],
|
|
2358
|
+
"decorators": [
|
|
2359
|
+
{
|
|
2360
|
+
"__schema": "DecoratorSchema",
|
|
2361
|
+
"location": {
|
|
2362
|
+
"filePath": "index.ts",
|
|
2363
|
+
"line": 168,
|
|
2364
|
+
"character": 3
|
|
2365
|
+
},
|
|
2366
|
+
"name": "LogMethod",
|
|
2367
|
+
"args": [
|
|
2368
|
+
{
|
|
2369
|
+
"__schema": "LiteralValueSchema",
|
|
2370
|
+
"location": {
|
|
2371
|
+
"filePath": "index.ts",
|
|
2372
|
+
"line": 168,
|
|
2373
|
+
"character": 14
|
|
2374
|
+
},
|
|
2375
|
+
"value": "This is a log message"
|
|
2376
|
+
}
|
|
2377
|
+
]
|
|
2378
|
+
}
|
|
2379
|
+
]
|
|
2380
|
+
}
|
|
2381
|
+
],
|
|
2382
|
+
"extendsNodes": [],
|
|
2383
|
+
"implementNodes": [],
|
|
2384
|
+
"decorators": [
|
|
2385
|
+
{
|
|
2386
|
+
"__schema": "DecoratorSchema",
|
|
2387
|
+
"location": {
|
|
2388
|
+
"filePath": "index.ts",
|
|
2389
|
+
"line": 166,
|
|
2390
|
+
"character": 1
|
|
2391
|
+
},
|
|
2392
|
+
"name": "CustomClassDecorator",
|
|
2393
|
+
"args": [
|
|
2394
|
+
{
|
|
2395
|
+
"__schema": "ObjectLiteralExpressionSchema",
|
|
2396
|
+
"location": {
|
|
2397
|
+
"filePath": "index.ts",
|
|
2398
|
+
"line": 166,
|
|
2399
|
+
"character": 23
|
|
2400
|
+
},
|
|
2401
|
+
"members": [
|
|
2402
|
+
{
|
|
2403
|
+
"__schema": "PropertyAssignmentSchema",
|
|
2404
|
+
"location": {
|
|
2405
|
+
"filePath": "index.ts",
|
|
2406
|
+
"line": 166,
|
|
2407
|
+
"character": 25
|
|
2408
|
+
},
|
|
2409
|
+
"name": "name",
|
|
2410
|
+
"value": {
|
|
2411
|
+
"__schema": "LiteralValueSchema",
|
|
2412
|
+
"location": {
|
|
2413
|
+
"filePath": "index.ts",
|
|
2414
|
+
"line": 166,
|
|
2415
|
+
"character": 31
|
|
2416
|
+
},
|
|
2417
|
+
"value": "ExampleClass2"
|
|
2418
|
+
}
|
|
2419
|
+
},
|
|
2420
|
+
{
|
|
2421
|
+
"__schema": "PropertyAssignmentSchema",
|
|
2422
|
+
"location": {
|
|
2423
|
+
"filePath": "index.ts",
|
|
2424
|
+
"line": 166,
|
|
2425
|
+
"character": 48
|
|
2426
|
+
},
|
|
2427
|
+
"name": "description",
|
|
2428
|
+
"value": {
|
|
2429
|
+
"__schema": "LiteralValueSchema",
|
|
2430
|
+
"location": {
|
|
2431
|
+
"filePath": "index.ts",
|
|
2432
|
+
"line": 166,
|
|
2433
|
+
"character": 61
|
|
2434
|
+
},
|
|
2435
|
+
"value": "This is an example class 2"
|
|
2436
|
+
}
|
|
2437
|
+
}
|
|
2438
|
+
]
|
|
2439
|
+
}
|
|
2440
|
+
]
|
|
2441
|
+
}
|
|
2442
|
+
]
|
|
2443
|
+
},
|
|
2444
|
+
{
|
|
2445
|
+
"__schema": "FunctionLikeSchema",
|
|
2446
|
+
"location": {
|
|
2447
|
+
"filePath": "index.ts",
|
|
2448
|
+
"line": 174,
|
|
2449
|
+
"character": 1
|
|
2450
|
+
},
|
|
2451
|
+
"signature": "function ValidateArgs(config: {\n type: string;\n required: boolean;\n}): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void",
|
|
2452
|
+
"name": "ValidateArgs",
|
|
2453
|
+
"params": [
|
|
2454
|
+
{
|
|
2455
|
+
"__schema": "ParameterSchema",
|
|
2456
|
+
"location": {
|
|
2457
|
+
"filePath": "index.ts",
|
|
2458
|
+
"line": 174,
|
|
2459
|
+
"character": 30
|
|
2460
|
+
},
|
|
2461
|
+
"name": "config",
|
|
2462
|
+
"type": {
|
|
2463
|
+
"__schema": "TypeLiteralSchema",
|
|
2464
|
+
"location": {
|
|
2465
|
+
"filePath": "index.ts",
|
|
2466
|
+
"line": 174,
|
|
2467
|
+
"character": 38
|
|
2468
|
+
},
|
|
2469
|
+
"members": [
|
|
2470
|
+
{
|
|
2471
|
+
"__schema": "VariableLikeSchema",
|
|
2472
|
+
"location": {
|
|
2473
|
+
"filePath": "index.ts",
|
|
2474
|
+
"line": 174,
|
|
2475
|
+
"character": 40
|
|
2476
|
+
},
|
|
2477
|
+
"signature": "(property) type: string",
|
|
2478
|
+
"name": "type",
|
|
2479
|
+
"type": {
|
|
2480
|
+
"__schema": "KeywordTypeSchema",
|
|
2481
|
+
"location": {
|
|
2482
|
+
"filePath": "index.ts",
|
|
2483
|
+
"line": 174,
|
|
2484
|
+
"character": 46
|
|
2485
|
+
},
|
|
2486
|
+
"name": "string"
|
|
2487
|
+
},
|
|
2488
|
+
"isOptional": false
|
|
2489
|
+
},
|
|
2490
|
+
{
|
|
2491
|
+
"__schema": "VariableLikeSchema",
|
|
2492
|
+
"location": {
|
|
2493
|
+
"filePath": "index.ts",
|
|
2494
|
+
"line": 174,
|
|
2495
|
+
"character": 54
|
|
2496
|
+
},
|
|
2497
|
+
"signature": "(property) required: boolean",
|
|
2498
|
+
"name": "required",
|
|
2499
|
+
"type": {
|
|
2500
|
+
"__schema": "KeywordTypeSchema",
|
|
2501
|
+
"location": {
|
|
2502
|
+
"filePath": "index.ts",
|
|
2503
|
+
"line": 174,
|
|
2504
|
+
"character": 64
|
|
2505
|
+
},
|
|
2506
|
+
"name": "boolean"
|
|
2507
|
+
},
|
|
2508
|
+
"isOptional": false
|
|
2509
|
+
}
|
|
2510
|
+
]
|
|
2511
|
+
},
|
|
2512
|
+
"isOptional": false,
|
|
2513
|
+
"isSpread": false
|
|
2514
|
+
}
|
|
2515
|
+
],
|
|
2516
|
+
"returnType": {
|
|
2517
|
+
"__schema": "InferenceTypeSchema",
|
|
2518
|
+
"location": {
|
|
2519
|
+
"filePath": "index.ts",
|
|
2520
|
+
"line": 174,
|
|
2521
|
+
"character": 1
|
|
2522
|
+
},
|
|
2523
|
+
"type": "(target: any, propertyKey: string, descriptor: PropertyDescriptor) => void"
|
|
2524
|
+
},
|
|
2525
|
+
"modifiers": [
|
|
2526
|
+
"export"
|
|
2527
|
+
]
|
|
2528
|
+
},
|
|
2529
|
+
{
|
|
2530
|
+
"__schema": "ClassSchema",
|
|
2531
|
+
"location": {
|
|
2532
|
+
"filePath": "index.ts",
|
|
2533
|
+
"line": 189,
|
|
2534
|
+
"character": 1
|
|
2535
|
+
},
|
|
2536
|
+
"signature": "class ExampleDecoratorTwo",
|
|
2537
|
+
"name": "ExampleDecoratorTwo",
|
|
2538
|
+
"members": [
|
|
2539
|
+
{
|
|
2540
|
+
"__schema": "FunctionLikeSchema",
|
|
2541
|
+
"location": {
|
|
2542
|
+
"filePath": "index.ts",
|
|
2543
|
+
"line": 197,
|
|
2544
|
+
"character": 3
|
|
2545
|
+
},
|
|
2546
|
+
"signature": "(method) ExampleDecoratorTwo.exampleMethod(input: string): void",
|
|
2547
|
+
"name": "exampleMethod",
|
|
2548
|
+
"params": [
|
|
2549
|
+
{
|
|
2550
|
+
"__schema": "ParameterSchema",
|
|
2551
|
+
"location": {
|
|
2552
|
+
"filePath": "index.ts",
|
|
2553
|
+
"line": 198,
|
|
2554
|
+
"character": 17
|
|
2555
|
+
},
|
|
2556
|
+
"name": "input",
|
|
2557
|
+
"type": {
|
|
2558
|
+
"__schema": "KeywordTypeSchema",
|
|
2559
|
+
"location": {
|
|
2560
|
+
"filePath": "index.ts",
|
|
2561
|
+
"line": 198,
|
|
2562
|
+
"character": 24
|
|
2563
|
+
},
|
|
2564
|
+
"name": "string"
|
|
2565
|
+
},
|
|
2566
|
+
"isOptional": false,
|
|
2567
|
+
"isSpread": false
|
|
2568
|
+
}
|
|
2569
|
+
],
|
|
2570
|
+
"returnType": {
|
|
2571
|
+
"__schema": "InferenceTypeSchema",
|
|
2572
|
+
"location": {
|
|
2573
|
+
"filePath": "index.ts",
|
|
2574
|
+
"line": 197,
|
|
2575
|
+
"character": 3
|
|
2576
|
+
},
|
|
2577
|
+
"type": "void"
|
|
2578
|
+
},
|
|
2579
|
+
"modifiers": [],
|
|
2580
|
+
"decorators": [
|
|
2581
|
+
{
|
|
2582
|
+
"__schema": "DecoratorSchema",
|
|
2583
|
+
"location": {
|
|
2584
|
+
"filePath": "index.ts",
|
|
2585
|
+
"line": 197,
|
|
2586
|
+
"character": 3
|
|
2587
|
+
},
|
|
2588
|
+
"name": "ValidateArgs",
|
|
2589
|
+
"args": [
|
|
2590
|
+
{
|
|
2591
|
+
"__schema": "ObjectLiteralExpressionSchema",
|
|
2592
|
+
"location": {
|
|
2593
|
+
"filePath": "index.ts",
|
|
2594
|
+
"line": 197,
|
|
2595
|
+
"character": 17
|
|
2596
|
+
},
|
|
2597
|
+
"members": [
|
|
2598
|
+
{
|
|
2599
|
+
"__schema": "PropertyAssignmentSchema",
|
|
2600
|
+
"location": {
|
|
2601
|
+
"filePath": "index.ts",
|
|
2602
|
+
"line": 197,
|
|
2603
|
+
"character": 19
|
|
2604
|
+
},
|
|
2605
|
+
"name": "type",
|
|
2606
|
+
"value": {
|
|
2607
|
+
"__schema": "LiteralValueSchema",
|
|
2608
|
+
"location": {
|
|
2609
|
+
"filePath": "index.ts",
|
|
2610
|
+
"line": 197,
|
|
2611
|
+
"character": 25
|
|
2612
|
+
},
|
|
2613
|
+
"value": "string"
|
|
2614
|
+
}
|
|
2615
|
+
},
|
|
2616
|
+
{
|
|
2617
|
+
"__schema": "PropertyAssignmentSchema",
|
|
2618
|
+
"location": {
|
|
2619
|
+
"filePath": "index.ts",
|
|
2620
|
+
"line": 197,
|
|
2621
|
+
"character": 35
|
|
2622
|
+
},
|
|
2623
|
+
"name": "required",
|
|
2624
|
+
"value": {
|
|
2625
|
+
"__schema": "LiteralValueSchema",
|
|
2626
|
+
"location": {
|
|
2627
|
+
"filePath": "index.ts",
|
|
2628
|
+
"line": 197,
|
|
2629
|
+
"character": 45
|
|
2630
|
+
},
|
|
2631
|
+
"value": "true"
|
|
2632
|
+
}
|
|
2633
|
+
}
|
|
2634
|
+
]
|
|
2635
|
+
}
|
|
2636
|
+
]
|
|
2637
|
+
}
|
|
2638
|
+
]
|
|
2639
|
+
}
|
|
2640
|
+
],
|
|
2641
|
+
"extendsNodes": [],
|
|
2642
|
+
"implementNodes": [],
|
|
2643
|
+
"decorators": [
|
|
2644
|
+
{
|
|
2645
|
+
"__schema": "DecoratorSchema",
|
|
2646
|
+
"location": {
|
|
2647
|
+
"filePath": "index.ts",
|
|
2648
|
+
"line": 189,
|
|
2649
|
+
"character": 1
|
|
2650
|
+
},
|
|
2651
|
+
"name": "CustomClassDecorator",
|
|
2652
|
+
"args": [
|
|
2653
|
+
{
|
|
2654
|
+
"__schema": "ObjectLiteralExpressionSchema",
|
|
2655
|
+
"location": {
|
|
2656
|
+
"filePath": "index.ts",
|
|
2657
|
+
"line": 189,
|
|
2658
|
+
"character": 23
|
|
2659
|
+
},
|
|
2660
|
+
"members": [
|
|
2661
|
+
{
|
|
2662
|
+
"__schema": "PropertyAssignmentSchema",
|
|
2663
|
+
"location": {
|
|
2664
|
+
"filePath": "index.ts",
|
|
2665
|
+
"line": 190,
|
|
2666
|
+
"character": 3
|
|
2667
|
+
},
|
|
2668
|
+
"name": "name",
|
|
2669
|
+
"value": {
|
|
2670
|
+
"__schema": "LiteralValueSchema",
|
|
2671
|
+
"location": {
|
|
2672
|
+
"filePath": "index.ts",
|
|
2673
|
+
"line": 190,
|
|
2674
|
+
"character": 9
|
|
2675
|
+
},
|
|
2676
|
+
"value": "ExampleClass"
|
|
2677
|
+
}
|
|
2678
|
+
},
|
|
2679
|
+
{
|
|
2680
|
+
"__schema": "PropertyAssignmentSchema",
|
|
2681
|
+
"location": {
|
|
2682
|
+
"filePath": "index.ts",
|
|
2683
|
+
"line": 191,
|
|
2684
|
+
"character": 3
|
|
2685
|
+
},
|
|
2686
|
+
"name": "description",
|
|
2687
|
+
"value": {
|
|
2688
|
+
"__schema": "LiteralValueSchema",
|
|
2689
|
+
"location": {
|
|
2690
|
+
"filePath": "index.ts",
|
|
2691
|
+
"line": 191,
|
|
2692
|
+
"character": 16
|
|
2693
|
+
},
|
|
2694
|
+
"value": "This is an example class"
|
|
2695
|
+
}
|
|
2696
|
+
},
|
|
2697
|
+
{
|
|
2698
|
+
"__schema": "PropertyAssignmentSchema",
|
|
2699
|
+
"location": {
|
|
2700
|
+
"filePath": "index.ts",
|
|
2701
|
+
"line": 192,
|
|
2702
|
+
"character": 3
|
|
2703
|
+
},
|
|
2704
|
+
"name": "fn",
|
|
2705
|
+
"value": {
|
|
2706
|
+
"__schema": "FunctionLikeSchema",
|
|
2707
|
+
"location": {
|
|
2708
|
+
"filePath": "index.ts",
|
|
2709
|
+
"line": 192,
|
|
2710
|
+
"character": 7
|
|
2711
|
+
},
|
|
2712
|
+
"signature": "function(): string",
|
|
2713
|
+
"name": "",
|
|
2714
|
+
"params": [],
|
|
2715
|
+
"returnType": {
|
|
2716
|
+
"__schema": "InferenceTypeSchema",
|
|
2717
|
+
"location": {
|
|
2718
|
+
"filePath": "index.ts",
|
|
2719
|
+
"line": 192,
|
|
2720
|
+
"character": 7
|
|
2721
|
+
},
|
|
2722
|
+
"type": "string"
|
|
2723
|
+
},
|
|
2724
|
+
"modifiers": []
|
|
2725
|
+
}
|
|
2726
|
+
},
|
|
2727
|
+
{
|
|
2728
|
+
"__schema": "PropertyAssignmentSchema",
|
|
2729
|
+
"location": {
|
|
2730
|
+
"filePath": "index.ts",
|
|
2731
|
+
"line": 193,
|
|
2732
|
+
"character": 3
|
|
2733
|
+
},
|
|
2734
|
+
"name": "class",
|
|
2735
|
+
"value": {
|
|
2736
|
+
"__schema": "LiteralValueSchema",
|
|
2737
|
+
"location": {
|
|
2738
|
+
"filePath": "index.ts",
|
|
2739
|
+
"line": 193,
|
|
2740
|
+
"character": 10
|
|
2741
|
+
},
|
|
2742
|
+
"value": "new ClassSomething('dsa')"
|
|
2743
|
+
}
|
|
2744
|
+
},
|
|
2745
|
+
{
|
|
2746
|
+
"__schema": "PropertyAssignmentSchema",
|
|
2747
|
+
"location": {
|
|
2748
|
+
"filePath": "index.ts",
|
|
2749
|
+
"line": 194,
|
|
2750
|
+
"character": 3
|
|
2751
|
+
},
|
|
2752
|
+
"name": "arr",
|
|
2753
|
+
"value": {
|
|
2754
|
+
"__schema": "ArrayLiteralExpressionSchema",
|
|
2755
|
+
"location": {
|
|
2756
|
+
"filePath": "index.ts",
|
|
2757
|
+
"line": 194,
|
|
2758
|
+
"character": 8
|
|
2759
|
+
},
|
|
2760
|
+
"members": [
|
|
2761
|
+
{
|
|
2762
|
+
"__schema": "LiteralValueSchema",
|
|
2763
|
+
"location": {
|
|
2764
|
+
"filePath": "index.ts",
|
|
2765
|
+
"line": 194,
|
|
2766
|
+
"character": 9
|
|
2767
|
+
},
|
|
2768
|
+
"value": "hi"
|
|
2769
|
+
},
|
|
2770
|
+
{
|
|
2771
|
+
"__schema": "LiteralValueSchema",
|
|
2772
|
+
"location": {
|
|
2773
|
+
"filePath": "index.ts",
|
|
2774
|
+
"line": 194,
|
|
2775
|
+
"character": 15
|
|
2776
|
+
},
|
|
2777
|
+
"value": "5"
|
|
2778
|
+
},
|
|
2779
|
+
{
|
|
2780
|
+
"__schema": "LiteralValueSchema",
|
|
2781
|
+
"location": {
|
|
2782
|
+
"filePath": "index.ts",
|
|
2783
|
+
"line": 194,
|
|
2784
|
+
"character": 18
|
|
2785
|
+
},
|
|
2786
|
+
"value": "true"
|
|
2787
|
+
},
|
|
2788
|
+
{
|
|
2789
|
+
"__schema": "LiteralValueSchema",
|
|
2790
|
+
"location": {
|
|
2791
|
+
"filePath": "index.ts",
|
|
2792
|
+
"line": 194,
|
|
2793
|
+
"character": 24
|
|
2794
|
+
},
|
|
2795
|
+
"value": "false"
|
|
2796
|
+
},
|
|
2797
|
+
{
|
|
2798
|
+
"__schema": "InferenceTypeSchema",
|
|
2799
|
+
"location": {
|
|
2800
|
+
"filePath": "index.ts",
|
|
2801
|
+
"line": 194,
|
|
2802
|
+
"character": 31
|
|
2803
|
+
},
|
|
2804
|
+
"type": "undefined"
|
|
2805
|
+
},
|
|
2806
|
+
{
|
|
2807
|
+
"__schema": "FunctionLikeSchema",
|
|
2808
|
+
"location": {
|
|
2809
|
+
"filePath": "index.ts",
|
|
2810
|
+
"line": 194,
|
|
2811
|
+
"character": 42
|
|
2812
|
+
},
|
|
2813
|
+
"signature": "function(): void",
|
|
2814
|
+
"name": "",
|
|
2815
|
+
"params": [],
|
|
2816
|
+
"returnType": {
|
|
2817
|
+
"__schema": "InferenceTypeSchema",
|
|
2818
|
+
"location": {
|
|
2819
|
+
"filePath": "index.ts",
|
|
2820
|
+
"line": 194,
|
|
2821
|
+
"character": 42
|
|
2822
|
+
},
|
|
2823
|
+
"type": "void"
|
|
2824
|
+
},
|
|
2825
|
+
"modifiers": []
|
|
2826
|
+
},
|
|
2827
|
+
{
|
|
2828
|
+
"__schema": "ObjectLiteralExpressionSchema",
|
|
2829
|
+
"location": {
|
|
2830
|
+
"filePath": "index.ts",
|
|
2831
|
+
"line": 194,
|
|
2832
|
+
"character": 52
|
|
2833
|
+
},
|
|
2834
|
+
"members": [
|
|
2835
|
+
{
|
|
2836
|
+
"__schema": "PropertyAssignmentSchema",
|
|
2837
|
+
"location": {
|
|
2838
|
+
"filePath": "index.ts",
|
|
2839
|
+
"line": 194,
|
|
2840
|
+
"character": 54
|
|
2841
|
+
},
|
|
2842
|
+
"name": "a",
|
|
2843
|
+
"value": {
|
|
2844
|
+
"__schema": "LiteralValueSchema",
|
|
2845
|
+
"location": {
|
|
2846
|
+
"filePath": "index.ts",
|
|
2847
|
+
"line": 194,
|
|
2848
|
+
"character": 57
|
|
2849
|
+
},
|
|
2850
|
+
"value": "hi"
|
|
2851
|
+
}
|
|
2852
|
+
},
|
|
2853
|
+
{
|
|
2854
|
+
"__schema": "PropertyAssignmentSchema",
|
|
2855
|
+
"location": {
|
|
2856
|
+
"filePath": "index.ts",
|
|
2857
|
+
"line": 194,
|
|
2858
|
+
"character": 63
|
|
2859
|
+
},
|
|
2860
|
+
"name": "b",
|
|
2861
|
+
"value": {
|
|
2862
|
+
"__schema": "LiteralValueSchema",
|
|
2863
|
+
"location": {
|
|
2864
|
+
"filePath": "index.ts",
|
|
2865
|
+
"line": 194,
|
|
2866
|
+
"character": 66
|
|
2867
|
+
},
|
|
2868
|
+
"value": "5"
|
|
2869
|
+
}
|
|
2870
|
+
}
|
|
2871
|
+
]
|
|
2872
|
+
},
|
|
2873
|
+
{
|
|
2874
|
+
"__schema": "LiteralValueSchema",
|
|
2875
|
+
"location": {
|
|
2876
|
+
"filePath": "index.ts",
|
|
2877
|
+
"line": 194,
|
|
2878
|
+
"character": 71
|
|
2879
|
+
},
|
|
2880
|
+
"value": "new ClassSomething('dsa')"
|
|
2881
|
+
}
|
|
2882
|
+
]
|
|
2883
|
+
}
|
|
2884
|
+
}
|
|
2885
|
+
]
|
|
2886
|
+
}
|
|
2887
|
+
]
|
|
2888
|
+
}
|
|
2889
|
+
]
|
|
1960
2890
|
}
|
|
1961
2891
|
],
|
|
1962
2892
|
"internals": [
|