@typespec/compiler 1.8.0-dev.0 → 1.8.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated-defs/TypeSpec.Prototypes.d.ts +2 -2
- package/dist/generated-defs/TypeSpec.Prototypes.d.ts.map +1 -1
- package/dist/generated-defs/TypeSpec.d.ts +56 -56
- package/dist/generated-defs/TypeSpec.d.ts.map +1 -1
- package/dist/manifest.js +2 -2
- package/dist/src/core/checker.d.ts.map +1 -1
- package/dist/src/core/checker.js +25 -4
- package/dist/src/core/checker.js.map +1 -1
- package/dist/src/core/program.d.ts.map +1 -1
- package/dist/src/core/program.js +5 -2
- package/dist/src/core/program.js.map +1 -1
- package/dist/src/core/types.d.ts +18 -1
- package/dist/src/core/types.d.ts.map +1 -1
- package/dist/src/core/types.js.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/init/prompts.d.ts.map +1 -1
- package/dist/src/init/prompts.js +1 -1
- package/dist/src/init/prompts.js.map +1 -1
- package/package.json +1 -1
- package/templates/scaffolding.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DecoratorContext, Type } from "../src/index.js";
|
|
2
|
-
export type GetterDecorator = (context: DecoratorContext, target: Type) => void;
|
|
1
|
+
import type { DecoratorContext, DecoratorValidatorCallbacks, Type } from "../src/index.js";
|
|
2
|
+
export type GetterDecorator = (context: DecoratorContext, target: Type) => DecoratorValidatorCallbacks | void;
|
|
3
3
|
export type TypeSpecPrototypesDecorators = {
|
|
4
4
|
getter: GetterDecorator;
|
|
5
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypeSpec.Prototypes.d.ts","sourceRoot":"","sources":["../../generated-defs/TypeSpec.Prototypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"TypeSpec.Prototypes.d.ts","sourceRoot":"","sources":["../../generated-defs/TypeSpec.Prototypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE3F,MAAM,MAAM,eAAe,GAAG,CAC5B,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,IAAI,KACT,2BAA2B,GAAG,IAAI,CAAC;AAExC,MAAM,MAAM,4BAA4B,GAAG;IACzC,MAAM,EAAE,eAAe,CAAC;CACzB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DecoratorContext, Enum, EnumValue, Interface, Model, ModelProperty, Namespace, Numeric, Operation, Scalar, ScalarValue, Type, Union, UnionVariant } from "../src/index.js";
|
|
1
|
+
import type { DecoratorContext, DecoratorValidatorCallbacks, Enum, EnumValue, Interface, Model, ModelProperty, Namespace, Numeric, Operation, Scalar, ScalarValue, Type, Union, UnionVariant } from "../src/index.js";
|
|
2
2
|
export interface ServiceOptions {
|
|
3
3
|
readonly title?: string;
|
|
4
4
|
}
|
|
@@ -45,7 +45,7 @@ export interface VisibilityFilter {
|
|
|
45
45
|
* }
|
|
46
46
|
* ```
|
|
47
47
|
*/
|
|
48
|
-
export type MediaTypeHintDecorator = (context: DecoratorContext, target: Model | Scalar | Enum | Union, mediaType: string) => void;
|
|
48
|
+
export type MediaTypeHintDecorator = (context: DecoratorContext, target: Model | Scalar | Enum | Union, mediaType: string) => DecoratorValidatorCallbacks | void;
|
|
49
49
|
/**
|
|
50
50
|
* Specify how to encode the target type.
|
|
51
51
|
*
|
|
@@ -71,7 +71,7 @@ export type MediaTypeHintDecorator = (context: DecoratorContext, target: Model |
|
|
|
71
71
|
* }
|
|
72
72
|
* ```
|
|
73
73
|
*/
|
|
74
|
-
export type EncodeDecorator = (context: DecoratorContext, target: Scalar | ModelProperty, encodingOrEncodeAs: Scalar | string | EnumValue, encodedAs?: Scalar) => void;
|
|
74
|
+
export type EncodeDecorator = (context: DecoratorContext, target: Scalar | ModelProperty, encodingOrEncodeAs: Scalar | string | EnumValue, encodedAs?: Scalar) => DecoratorValidatorCallbacks | void;
|
|
75
75
|
/**
|
|
76
76
|
* Attach a documentation string. Content support CommonMark markdown formatting.
|
|
77
77
|
*
|
|
@@ -83,31 +83,31 @@ export type EncodeDecorator = (context: DecoratorContext, target: Scalar | Model
|
|
|
83
83
|
* model Pet {}
|
|
84
84
|
* ```
|
|
85
85
|
*/
|
|
86
|
-
export type DocDecorator = (context: DecoratorContext, target: Type, doc: string, formatArgs?: Type) => void;
|
|
86
|
+
export type DocDecorator = (context: DecoratorContext, target: Type, doc: string, formatArgs?: Type) => DecoratorValidatorCallbacks | void;
|
|
87
87
|
/**
|
|
88
88
|
* Returns the model with required properties removed.
|
|
89
89
|
*/
|
|
90
|
-
export type WithOptionalPropertiesDecorator = (context: DecoratorContext, target: Model) => void;
|
|
90
|
+
export type WithOptionalPropertiesDecorator = (context: DecoratorContext, target: Model) => DecoratorValidatorCallbacks | void;
|
|
91
91
|
/**
|
|
92
92
|
* Returns the model with non-updateable properties removed.
|
|
93
93
|
*/
|
|
94
|
-
export type WithUpdateablePropertiesDecorator = (context: DecoratorContext, target: Model) => void;
|
|
94
|
+
export type WithUpdateablePropertiesDecorator = (context: DecoratorContext, target: Model) => DecoratorValidatorCallbacks | void;
|
|
95
95
|
/**
|
|
96
96
|
* Returns the model with the given properties omitted.
|
|
97
97
|
*
|
|
98
98
|
* @param omit List of properties to omit
|
|
99
99
|
*/
|
|
100
|
-
export type WithoutOmittedPropertiesDecorator = (context: DecoratorContext, target: Model, omit: Type) => void;
|
|
100
|
+
export type WithoutOmittedPropertiesDecorator = (context: DecoratorContext, target: Model, omit: Type) => DecoratorValidatorCallbacks | void;
|
|
101
101
|
/**
|
|
102
102
|
* Returns the model with only the given properties included.
|
|
103
103
|
*
|
|
104
104
|
* @param pick List of properties to include
|
|
105
105
|
*/
|
|
106
|
-
export type WithPickedPropertiesDecorator = (context: DecoratorContext, target: Model, pick: Type) => void;
|
|
106
|
+
export type WithPickedPropertiesDecorator = (context: DecoratorContext, target: Model, pick: Type) => DecoratorValidatorCallbacks | void;
|
|
107
107
|
/**
|
|
108
108
|
* Returns the model with any default values removed.
|
|
109
109
|
*/
|
|
110
|
-
export type WithoutDefaultValuesDecorator = (context: DecoratorContext, target: Model) => void;
|
|
110
|
+
export type WithoutDefaultValuesDecorator = (context: DecoratorContext, target: Model) => DecoratorValidatorCallbacks | void;
|
|
111
111
|
/**
|
|
112
112
|
* Set the visibility of key properties in a model if not already set.
|
|
113
113
|
*
|
|
@@ -123,7 +123,7 @@ export type WithoutDefaultValuesDecorator = (context: DecoratorContext, target:
|
|
|
123
123
|
*
|
|
124
124
|
* @param visibility The desired default visibility value. If a key property already has visibility set, it will not be changed.
|
|
125
125
|
*/
|
|
126
|
-
export type WithDefaultKeyVisibilityDecorator = (context: DecoratorContext, target: Model, visibility: EnumValue) => void;
|
|
126
|
+
export type WithDefaultKeyVisibilityDecorator = (context: DecoratorContext, target: Model, visibility: EnumValue) => DecoratorValidatorCallbacks | void;
|
|
127
127
|
/**
|
|
128
128
|
* Typically a short, single-line description.
|
|
129
129
|
*
|
|
@@ -134,7 +134,7 @@ export type WithDefaultKeyVisibilityDecorator = (context: DecoratorContext, targ
|
|
|
134
134
|
* model Pet {}
|
|
135
135
|
* ```
|
|
136
136
|
*/
|
|
137
|
-
export type SummaryDecorator = (context: DecoratorContext, target: Type, summary: string) => void;
|
|
137
|
+
export type SummaryDecorator = (context: DecoratorContext, target: Type, summary: string) => DecoratorValidatorCallbacks | void;
|
|
138
138
|
/**
|
|
139
139
|
* Attach a documentation string to describe the successful return types of an operation.
|
|
140
140
|
* If an operation returns a union of success and errors it only describes the success. See `@errorsDoc` for error documentation.
|
|
@@ -146,7 +146,7 @@ export type SummaryDecorator = (context: DecoratorContext, target: Type, summary
|
|
|
146
146
|
* op get(): Pet | NotFound;
|
|
147
147
|
* ```
|
|
148
148
|
*/
|
|
149
|
-
export type ReturnsDocDecorator = (context: DecoratorContext, target: Operation, doc: string) => void;
|
|
149
|
+
export type ReturnsDocDecorator = (context: DecoratorContext, target: Operation, doc: string) => DecoratorValidatorCallbacks | void;
|
|
150
150
|
/**
|
|
151
151
|
* Attach a documentation string to describe the error return types of an operation.
|
|
152
152
|
* If an operation returns a union of success and errors it only describes the errors. See `@returnsDoc` for success documentation.
|
|
@@ -158,7 +158,7 @@ export type ReturnsDocDecorator = (context: DecoratorContext, target: Operation,
|
|
|
158
158
|
* op get(): Pet | NotFound;
|
|
159
159
|
* ```
|
|
160
160
|
*/
|
|
161
|
-
export type ErrorsDocDecorator = (context: DecoratorContext, target: Operation, doc: string) => void;
|
|
161
|
+
export type ErrorsDocDecorator = (context: DecoratorContext, target: Operation, doc: string) => DecoratorValidatorCallbacks | void;
|
|
162
162
|
/**
|
|
163
163
|
* Mark this namespace as describing a service and configure service properties.
|
|
164
164
|
*
|
|
@@ -174,7 +174,7 @@ export type ErrorsDocDecorator = (context: DecoratorContext, target: Operation,
|
|
|
174
174
|
* namespace PetStore;
|
|
175
175
|
* ```
|
|
176
176
|
*/
|
|
177
|
-
export type ServiceDecorator = (context: DecoratorContext, target: Namespace, options?: ServiceOptions) => void;
|
|
177
|
+
export type ServiceDecorator = (context: DecoratorContext, target: Namespace, options?: ServiceOptions) => DecoratorValidatorCallbacks | void;
|
|
178
178
|
/**
|
|
179
179
|
* Specify that this model is an error type. Operations return error types when the operation has failed.
|
|
180
180
|
*
|
|
@@ -187,7 +187,7 @@ export type ServiceDecorator = (context: DecoratorContext, target: Namespace, op
|
|
|
187
187
|
* }
|
|
188
188
|
* ```
|
|
189
189
|
*/
|
|
190
|
-
export type ErrorDecorator = (context: DecoratorContext, target: Model) => void;
|
|
190
|
+
export type ErrorDecorator = (context: DecoratorContext, target: Model) => DecoratorValidatorCallbacks | void;
|
|
191
191
|
/**
|
|
192
192
|
* Specify a known data format hint for this string type. For example `uuid`, `uri`, etc.
|
|
193
193
|
* This differs from the `@pattern` decorator which is meant to specify a regular expression while `@format` accepts a known format name.
|
|
@@ -200,7 +200,7 @@ export type ErrorDecorator = (context: DecoratorContext, target: Model) => void;
|
|
|
200
200
|
* scalar uuid extends string;
|
|
201
201
|
* ```
|
|
202
202
|
*/
|
|
203
|
-
export type FormatDecorator = (context: DecoratorContext, target: Scalar | ModelProperty, format: string) => void;
|
|
203
|
+
export type FormatDecorator = (context: DecoratorContext, target: Scalar | ModelProperty, format: string) => DecoratorValidatorCallbacks | void;
|
|
204
204
|
/**
|
|
205
205
|
* Specify the the pattern this string should respect using simple regular expression syntax.
|
|
206
206
|
* The following syntax is allowed: alternations (`|`), quantifiers (`?`, `*`, `+`, and `{ }`), wildcard (`.`), and grouping parentheses.
|
|
@@ -219,7 +219,7 @@ export type FormatDecorator = (context: DecoratorContext, target: Scalar | Model
|
|
|
219
219
|
* scalar LowerAlpha extends string;
|
|
220
220
|
* ```
|
|
221
221
|
*/
|
|
222
|
-
export type PatternDecorator = (context: DecoratorContext, target: Scalar | ModelProperty, pattern: string, validationMessage?: string) => void;
|
|
222
|
+
export type PatternDecorator = (context: DecoratorContext, target: Scalar | ModelProperty, pattern: string, validationMessage?: string) => DecoratorValidatorCallbacks | void;
|
|
223
223
|
/**
|
|
224
224
|
* Specify the minimum length this string type should be.
|
|
225
225
|
*
|
|
@@ -230,7 +230,7 @@ export type PatternDecorator = (context: DecoratorContext, target: Scalar | Mode
|
|
|
230
230
|
* scalar Username extends string;
|
|
231
231
|
* ```
|
|
232
232
|
*/
|
|
233
|
-
export type MinLengthDecorator = (context: DecoratorContext, target: Scalar | ModelProperty, value: Numeric) => void;
|
|
233
|
+
export type MinLengthDecorator = (context: DecoratorContext, target: Scalar | ModelProperty, value: Numeric) => DecoratorValidatorCallbacks | void;
|
|
234
234
|
/**
|
|
235
235
|
* Specify the maximum length this string type should be.
|
|
236
236
|
*
|
|
@@ -241,7 +241,7 @@ export type MinLengthDecorator = (context: DecoratorContext, target: Scalar | Mo
|
|
|
241
241
|
* scalar Username extends string;
|
|
242
242
|
* ```
|
|
243
243
|
*/
|
|
244
|
-
export type MaxLengthDecorator = (context: DecoratorContext, target: Scalar | ModelProperty, value: Numeric) => void;
|
|
244
|
+
export type MaxLengthDecorator = (context: DecoratorContext, target: Scalar | ModelProperty, value: Numeric) => DecoratorValidatorCallbacks | void;
|
|
245
245
|
/**
|
|
246
246
|
* Specify the minimum number of items this array should have.
|
|
247
247
|
*
|
|
@@ -252,7 +252,7 @@ export type MaxLengthDecorator = (context: DecoratorContext, target: Scalar | Mo
|
|
|
252
252
|
* model Endpoints is string[];
|
|
253
253
|
* ```
|
|
254
254
|
*/
|
|
255
|
-
export type MinItemsDecorator = (context: DecoratorContext, target: Type | ModelProperty, value: Numeric) => void;
|
|
255
|
+
export type MinItemsDecorator = (context: DecoratorContext, target: Type | ModelProperty, value: Numeric) => DecoratorValidatorCallbacks | void;
|
|
256
256
|
/**
|
|
257
257
|
* Specify the maximum number of items this array should have.
|
|
258
258
|
*
|
|
@@ -263,7 +263,7 @@ export type MinItemsDecorator = (context: DecoratorContext, target: Type | Model
|
|
|
263
263
|
* model Endpoints is string[];
|
|
264
264
|
* ```
|
|
265
265
|
*/
|
|
266
|
-
export type MaxItemsDecorator = (context: DecoratorContext, target: Type | ModelProperty, value: Numeric) => void;
|
|
266
|
+
export type MaxItemsDecorator = (context: DecoratorContext, target: Type | ModelProperty, value: Numeric) => DecoratorValidatorCallbacks | void;
|
|
267
267
|
/**
|
|
268
268
|
* Specify the minimum value this numeric type should be.
|
|
269
269
|
*
|
|
@@ -274,7 +274,7 @@ export type MaxItemsDecorator = (context: DecoratorContext, target: Type | Model
|
|
|
274
274
|
* scalar Age is int32;
|
|
275
275
|
* ```
|
|
276
276
|
*/
|
|
277
|
-
export type MinValueDecorator = (context: DecoratorContext, target: Scalar | ModelProperty, value: Numeric | ScalarValue | ScalarValue | ScalarValue | ScalarValue | ScalarValue) => void;
|
|
277
|
+
export type MinValueDecorator = (context: DecoratorContext, target: Scalar | ModelProperty, value: Numeric | ScalarValue | ScalarValue | ScalarValue | ScalarValue | ScalarValue) => DecoratorValidatorCallbacks | void;
|
|
278
278
|
/**
|
|
279
279
|
* Specify the maximum value this numeric type should be.
|
|
280
280
|
*
|
|
@@ -285,7 +285,7 @@ export type MinValueDecorator = (context: DecoratorContext, target: Scalar | Mod
|
|
|
285
285
|
* scalar Age is int32;
|
|
286
286
|
* ```
|
|
287
287
|
*/
|
|
288
|
-
export type MaxValueDecorator = (context: DecoratorContext, target: Scalar | ModelProperty, value: Numeric | ScalarValue | ScalarValue | ScalarValue | ScalarValue | ScalarValue) => void;
|
|
288
|
+
export type MaxValueDecorator = (context: DecoratorContext, target: Scalar | ModelProperty, value: Numeric | ScalarValue | ScalarValue | ScalarValue | ScalarValue | ScalarValue) => DecoratorValidatorCallbacks | void;
|
|
289
289
|
/**
|
|
290
290
|
* Specify the minimum value this numeric type should be, exclusive of the given
|
|
291
291
|
* value.
|
|
@@ -297,7 +297,7 @@ export type MaxValueDecorator = (context: DecoratorContext, target: Scalar | Mod
|
|
|
297
297
|
* scalar distance is float64;
|
|
298
298
|
* ```
|
|
299
299
|
*/
|
|
300
|
-
export type MinValueExclusiveDecorator = (context: DecoratorContext, target: Scalar | ModelProperty, value: Numeric | ScalarValue | ScalarValue | ScalarValue | ScalarValue | ScalarValue) => void;
|
|
300
|
+
export type MinValueExclusiveDecorator = (context: DecoratorContext, target: Scalar | ModelProperty, value: Numeric | ScalarValue | ScalarValue | ScalarValue | ScalarValue | ScalarValue) => DecoratorValidatorCallbacks | void;
|
|
301
301
|
/**
|
|
302
302
|
* Specify the maximum value this numeric type should be, exclusive of the given
|
|
303
303
|
* value.
|
|
@@ -309,7 +309,7 @@ export type MinValueExclusiveDecorator = (context: DecoratorContext, target: Sca
|
|
|
309
309
|
* scalar distance is float64;
|
|
310
310
|
* ```
|
|
311
311
|
*/
|
|
312
|
-
export type MaxValueExclusiveDecorator = (context: DecoratorContext, target: Scalar | ModelProperty, value: Numeric | ScalarValue | ScalarValue | ScalarValue | ScalarValue | ScalarValue) => void;
|
|
312
|
+
export type MaxValueExclusiveDecorator = (context: DecoratorContext, target: Scalar | ModelProperty, value: Numeric | ScalarValue | ScalarValue | ScalarValue | ScalarValue | ScalarValue) => DecoratorValidatorCallbacks | void;
|
|
313
313
|
/**
|
|
314
314
|
* Mark this value as a secret value that should be treated carefully to avoid exposure
|
|
315
315
|
*
|
|
@@ -319,13 +319,13 @@ export type MaxValueExclusiveDecorator = (context: DecoratorContext, target: Sca
|
|
|
319
319
|
* scalar Password is string;
|
|
320
320
|
* ```
|
|
321
321
|
*/
|
|
322
|
-
export type SecretDecorator = (context: DecoratorContext, target: Scalar | ModelProperty | Model | Union | Enum) => void;
|
|
322
|
+
export type SecretDecorator = (context: DecoratorContext, target: Scalar | ModelProperty | Model | Union | Enum) => DecoratorValidatorCallbacks | void;
|
|
323
323
|
/**
|
|
324
324
|
* Attaches a tag to an operation, interface, or namespace. Multiple `@tag` decorators can be specified to attach multiple tags to a TypeSpec element.
|
|
325
325
|
*
|
|
326
326
|
* @param tag Tag value
|
|
327
327
|
*/
|
|
328
|
-
export type TagDecorator = (context: DecoratorContext, target: Namespace | Interface | Operation, tag: string) => void;
|
|
328
|
+
export type TagDecorator = (context: DecoratorContext, target: Namespace | Interface | Operation, tag: string) => DecoratorValidatorCallbacks | void;
|
|
329
329
|
/**
|
|
330
330
|
* Specifies how a templated type should name their instances.
|
|
331
331
|
*
|
|
@@ -340,7 +340,7 @@ export type TagDecorator = (context: DecoratorContext, target: Namespace | Inter
|
|
|
340
340
|
* }
|
|
341
341
|
* ```
|
|
342
342
|
*/
|
|
343
|
-
export type FriendlyNameDecorator = (context: DecoratorContext, target: Type, name: string, formatArgs?: Type) => void;
|
|
343
|
+
export type FriendlyNameDecorator = (context: DecoratorContext, target: Type, name: string, formatArgs?: Type) => DecoratorValidatorCallbacks | void;
|
|
344
344
|
/**
|
|
345
345
|
* Mark a model property as the key to identify instances of that type
|
|
346
346
|
*
|
|
@@ -352,7 +352,7 @@ export type FriendlyNameDecorator = (context: DecoratorContext, target: Type, na
|
|
|
352
352
|
* }
|
|
353
353
|
* ```
|
|
354
354
|
*/
|
|
355
|
-
export type KeyDecorator = (context: DecoratorContext, target: ModelProperty, altName?: string) => void;
|
|
355
|
+
export type KeyDecorator = (context: DecoratorContext, target: ModelProperty, altName?: string) => DecoratorValidatorCallbacks | void;
|
|
356
356
|
/**
|
|
357
357
|
* Specify this operation is an overload of the given operation.
|
|
358
358
|
*
|
|
@@ -366,7 +366,7 @@ export type KeyDecorator = (context: DecoratorContext, target: ModelProperty, al
|
|
|
366
366
|
* op uploadBytes(data: bytes, @header contentType: "application/octet-stream"): void;
|
|
367
367
|
* ```
|
|
368
368
|
*/
|
|
369
|
-
export type OverloadDecorator = (context: DecoratorContext, target: Operation, overloadbase: Operation) => void;
|
|
369
|
+
export type OverloadDecorator = (context: DecoratorContext, target: Operation, overloadbase: Operation) => DecoratorValidatorCallbacks | void;
|
|
370
370
|
/**
|
|
371
371
|
* Provide an alternative name for this type when serialized to the given mime type.
|
|
372
372
|
*
|
|
@@ -387,7 +387,7 @@ export type OverloadDecorator = (context: DecoratorContext, target: Operation, o
|
|
|
387
387
|
* ^ error cannot use subtype
|
|
388
388
|
* ```
|
|
389
389
|
*/
|
|
390
|
-
export type EncodedNameDecorator = (context: DecoratorContext, target: Type, mimeType: string, name: string) => void;
|
|
390
|
+
export type EncodedNameDecorator = (context: DecoratorContext, target: Type, mimeType: string, name: string) => DecoratorValidatorCallbacks | void;
|
|
391
391
|
/**
|
|
392
392
|
* Specify that this union is discriminated.
|
|
393
393
|
*
|
|
@@ -444,7 +444,7 @@ export type EncodedNameDecorator = (context: DecoratorContext, target: Type, mim
|
|
|
444
444
|
* }
|
|
445
445
|
* ```
|
|
446
446
|
*/
|
|
447
|
-
export type DiscriminatedDecorator = (context: DecoratorContext, target: Union, options?: DiscriminatedOptions) => void;
|
|
447
|
+
export type DiscriminatedDecorator = (context: DecoratorContext, target: Union, options?: DiscriminatedOptions) => DecoratorValidatorCallbacks | void;
|
|
448
448
|
/**
|
|
449
449
|
* Specify the property to be used to discriminate this type.
|
|
450
450
|
*
|
|
@@ -458,7 +458,7 @@ export type DiscriminatedDecorator = (context: DecoratorContext, target: Union,
|
|
|
458
458
|
* model Dog extends Pet {kind: "dog", bark: boolean}
|
|
459
459
|
* ```
|
|
460
460
|
*/
|
|
461
|
-
export type DiscriminatorDecorator = (context: DecoratorContext, target: Model, propertyName: string) => void;
|
|
461
|
+
export type DiscriminatorDecorator = (context: DecoratorContext, target: Model, propertyName: string) => DecoratorValidatorCallbacks | void;
|
|
462
462
|
/**
|
|
463
463
|
* Provide an example value for a data type.
|
|
464
464
|
*
|
|
@@ -473,7 +473,7 @@ export type DiscriminatorDecorator = (context: DecoratorContext, target: Model,
|
|
|
473
473
|
* }
|
|
474
474
|
* ```
|
|
475
475
|
*/
|
|
476
|
-
export type ExampleDecorator = (context: DecoratorContext, target: Model | Enum | Scalar | Union | ModelProperty | UnionVariant, example: unknown, options?: ExampleOptions) => void;
|
|
476
|
+
export type ExampleDecorator = (context: DecoratorContext, target: Model | Enum | Scalar | Union | ModelProperty | UnionVariant, example: unknown, options?: ExampleOptions) => DecoratorValidatorCallbacks | void;
|
|
477
477
|
/**
|
|
478
478
|
* Provide example values for an operation's parameters and corresponding return type.
|
|
479
479
|
*
|
|
@@ -485,11 +485,11 @@ export type ExampleDecorator = (context: DecoratorContext, target: Model | Enum
|
|
|
485
485
|
* op createPet(pet: Pet): Pet;
|
|
486
486
|
* ```
|
|
487
487
|
*/
|
|
488
|
-
export type OpExampleDecorator = (context: DecoratorContext, target: Operation, example: OperationExample, options?: ExampleOptions) => void;
|
|
488
|
+
export type OpExampleDecorator = (context: DecoratorContext, target: Operation, example: OperationExample, options?: ExampleOptions) => DecoratorValidatorCallbacks | void;
|
|
489
489
|
/**
|
|
490
490
|
* Mark this operation as a `list` operation that returns a paginated list of items.
|
|
491
491
|
*/
|
|
492
|
-
export type ListDecorator = (context: DecoratorContext, target: Operation) => void;
|
|
492
|
+
export type ListDecorator = (context: DecoratorContext, target: Operation) => DecoratorValidatorCallbacks | void;
|
|
493
493
|
/**
|
|
494
494
|
* Pagination property defining the number of items to skip.
|
|
495
495
|
*
|
|
@@ -501,7 +501,7 @@ export type ListDecorator = (context: DecoratorContext, target: Operation) => vo
|
|
|
501
501
|
* @list op listPets(@offset skip: int32, @pageSize pageSize: int8): Page<Pet>;
|
|
502
502
|
* ```
|
|
503
503
|
*/
|
|
504
|
-
export type OffsetDecorator = (context: DecoratorContext, target: ModelProperty) => void;
|
|
504
|
+
export type OffsetDecorator = (context: DecoratorContext, target: ModelProperty) => DecoratorValidatorCallbacks | void;
|
|
505
505
|
/**
|
|
506
506
|
* Pagination property defining the page index.
|
|
507
507
|
*
|
|
@@ -513,7 +513,7 @@ export type OffsetDecorator = (context: DecoratorContext, target: ModelProperty)
|
|
|
513
513
|
* @list op listPets(@pageIndex page: int32, @pageSize pageSize: int8): Page<Pet>;
|
|
514
514
|
* ```
|
|
515
515
|
*/
|
|
516
|
-
export type PageIndexDecorator = (context: DecoratorContext, target: ModelProperty) => void;
|
|
516
|
+
export type PageIndexDecorator = (context: DecoratorContext, target: ModelProperty) => DecoratorValidatorCallbacks | void;
|
|
517
517
|
/**
|
|
518
518
|
* Specify the pagination parameter that controls the maximum number of items to include in a page.
|
|
519
519
|
*
|
|
@@ -525,7 +525,7 @@ export type PageIndexDecorator = (context: DecoratorContext, target: ModelProper
|
|
|
525
525
|
* @list op listPets(@pageIndex page: int32, @pageSize pageSize: int8): Page<Pet>;
|
|
526
526
|
* ```
|
|
527
527
|
*/
|
|
528
|
-
export type PageSizeDecorator = (context: DecoratorContext, target: ModelProperty) => void;
|
|
528
|
+
export type PageSizeDecorator = (context: DecoratorContext, target: ModelProperty) => DecoratorValidatorCallbacks | void;
|
|
529
529
|
/**
|
|
530
530
|
* Specify the the property that contains the array of page items.
|
|
531
531
|
*
|
|
@@ -537,7 +537,7 @@ export type PageSizeDecorator = (context: DecoratorContext, target: ModelPropert
|
|
|
537
537
|
* @list op listPets(@pageIndex page: int32, @pageSize pageSize: int8): Page<Pet>;
|
|
538
538
|
* ```
|
|
539
539
|
*/
|
|
540
|
-
export type PageItemsDecorator = (context: DecoratorContext, target: ModelProperty) => void;
|
|
540
|
+
export type PageItemsDecorator = (context: DecoratorContext, target: ModelProperty) => DecoratorValidatorCallbacks | void;
|
|
541
541
|
/**
|
|
542
542
|
* Pagination property defining the token to get to the next page.
|
|
543
543
|
* It MUST be specified both on the request parameter and the response.
|
|
@@ -551,7 +551,7 @@ export type PageItemsDecorator = (context: DecoratorContext, target: ModelProper
|
|
|
551
551
|
* @list op listPets(@continuationToken continuationToken: string): Page<Pet>;
|
|
552
552
|
* ```
|
|
553
553
|
*/
|
|
554
|
-
export type ContinuationTokenDecorator = (context: DecoratorContext, target: ModelProperty) => void;
|
|
554
|
+
export type ContinuationTokenDecorator = (context: DecoratorContext, target: ModelProperty) => DecoratorValidatorCallbacks | void;
|
|
555
555
|
/**
|
|
556
556
|
* Pagination property defining a link to the next page.
|
|
557
557
|
*
|
|
@@ -569,7 +569,7 @@ export type ContinuationTokenDecorator = (context: DecoratorContext, target: Mod
|
|
|
569
569
|
* @list op listPets(): Page<Pet>;
|
|
570
570
|
* ```
|
|
571
571
|
*/
|
|
572
|
-
export type NextLinkDecorator = (context: DecoratorContext, target: ModelProperty) => void;
|
|
572
|
+
export type NextLinkDecorator = (context: DecoratorContext, target: ModelProperty) => DecoratorValidatorCallbacks | void;
|
|
573
573
|
/**
|
|
574
574
|
* Pagination property defining a link to the previous page.
|
|
575
575
|
*
|
|
@@ -587,7 +587,7 @@ export type NextLinkDecorator = (context: DecoratorContext, target: ModelPropert
|
|
|
587
587
|
* @list op listPets(): Page<Pet>;
|
|
588
588
|
* ```
|
|
589
589
|
*/
|
|
590
|
-
export type PrevLinkDecorator = (context: DecoratorContext, target: ModelProperty) => void;
|
|
590
|
+
export type PrevLinkDecorator = (context: DecoratorContext, target: ModelProperty) => DecoratorValidatorCallbacks | void;
|
|
591
591
|
/**
|
|
592
592
|
* Pagination property defining a link to the first page.
|
|
593
593
|
*
|
|
@@ -605,7 +605,7 @@ export type PrevLinkDecorator = (context: DecoratorContext, target: ModelPropert
|
|
|
605
605
|
* @list op listPets(): Page<Pet>;
|
|
606
606
|
* ```
|
|
607
607
|
*/
|
|
608
|
-
export type FirstLinkDecorator = (context: DecoratorContext, target: ModelProperty) => void;
|
|
608
|
+
export type FirstLinkDecorator = (context: DecoratorContext, target: ModelProperty) => DecoratorValidatorCallbacks | void;
|
|
609
609
|
/**
|
|
610
610
|
* Pagination property defining a link to the last page.
|
|
611
611
|
*
|
|
@@ -623,19 +623,19 @@ export type FirstLinkDecorator = (context: DecoratorContext, target: ModelProper
|
|
|
623
623
|
* @list op listPets(): Page<Pet>;
|
|
624
624
|
* ```
|
|
625
625
|
*/
|
|
626
|
-
export type LastLinkDecorator = (context: DecoratorContext, target: ModelProperty) => void;
|
|
626
|
+
export type LastLinkDecorator = (context: DecoratorContext, target: ModelProperty) => DecoratorValidatorCallbacks | void;
|
|
627
627
|
/**
|
|
628
628
|
* A debugging decorator used to inspect a type.
|
|
629
629
|
*
|
|
630
630
|
* @param text Custom text to log
|
|
631
631
|
*/
|
|
632
|
-
export type InspectTypeDecorator = (context: DecoratorContext, target: Type, text: string) => void;
|
|
632
|
+
export type InspectTypeDecorator = (context: DecoratorContext, target: Type, text: string) => DecoratorValidatorCallbacks | void;
|
|
633
633
|
/**
|
|
634
634
|
* A debugging decorator used to inspect a type name.
|
|
635
635
|
*
|
|
636
636
|
* @param text Custom text to log
|
|
637
637
|
*/
|
|
638
|
-
export type InspectTypeNameDecorator = (context: DecoratorContext, target: Type, text: string) => void;
|
|
638
|
+
export type InspectTypeNameDecorator = (context: DecoratorContext, target: Type, text: string) => DecoratorValidatorCallbacks | void;
|
|
639
639
|
/**
|
|
640
640
|
* Sets the visibility modifiers that are active on a property, indicating that it is only considered to be present
|
|
641
641
|
* (or "visible") in contexts that select for the given modifiers.
|
|
@@ -682,7 +682,7 @@ export type InspectTypeNameDecorator = (context: DecoratorContext, target: Type,
|
|
|
682
682
|
* }
|
|
683
683
|
* ```
|
|
684
684
|
*/
|
|
685
|
-
export type VisibilityDecorator = (context: DecoratorContext, target: ModelProperty, ...visibilities: EnumValue[]) => void;
|
|
685
|
+
export type VisibilityDecorator = (context: DecoratorContext, target: ModelProperty, ...visibilities: EnumValue[]) => DecoratorValidatorCallbacks | void;
|
|
686
686
|
/**
|
|
687
687
|
* Indicates that a property is not visible in the given visibility class.
|
|
688
688
|
*
|
|
@@ -699,7 +699,7 @@ export type VisibilityDecorator = (context: DecoratorContext, target: ModelPrope
|
|
|
699
699
|
* }
|
|
700
700
|
* ```
|
|
701
701
|
*/
|
|
702
|
-
export type InvisibleDecorator = (context: DecoratorContext, target: ModelProperty, visibilityClass: Enum) => void;
|
|
702
|
+
export type InvisibleDecorator = (context: DecoratorContext, target: ModelProperty, visibilityClass: Enum) => DecoratorValidatorCallbacks | void;
|
|
703
703
|
/**
|
|
704
704
|
* Removes visibility modifiers from a property.
|
|
705
705
|
*
|
|
@@ -719,7 +719,7 @@ export type InvisibleDecorator = (context: DecoratorContext, target: ModelProper
|
|
|
719
719
|
* }
|
|
720
720
|
* ```
|
|
721
721
|
*/
|
|
722
|
-
export type RemoveVisibilityDecorator = (context: DecoratorContext, target: ModelProperty, ...visibilities: EnumValue[]) => void;
|
|
722
|
+
export type RemoveVisibilityDecorator = (context: DecoratorContext, target: ModelProperty, ...visibilities: EnumValue[]) => DecoratorValidatorCallbacks | void;
|
|
723
723
|
/**
|
|
724
724
|
* Removes properties that do not have at least one of the given visibility modifiers
|
|
725
725
|
* active.
|
|
@@ -763,7 +763,7 @@ export type RemoveVisibilityDecorator = (context: DecoratorContext, target: Mode
|
|
|
763
763
|
* }
|
|
764
764
|
* ```
|
|
765
765
|
*/
|
|
766
|
-
export type WithVisibilityDecorator = (context: DecoratorContext, target: Model, ...visibilities: EnumValue[]) => void;
|
|
766
|
+
export type WithVisibilityDecorator = (context: DecoratorContext, target: Model, ...visibilities: EnumValue[]) => DecoratorValidatorCallbacks | void;
|
|
767
767
|
/**
|
|
768
768
|
* Declares the visibility constraint of the parameters of a given operation.
|
|
769
769
|
*
|
|
@@ -774,7 +774,7 @@ export type WithVisibilityDecorator = (context: DecoratorContext, target: Model,
|
|
|
774
774
|
*
|
|
775
775
|
* @param visibilities List of visibility modifiers that apply to the parameters of this operation.
|
|
776
776
|
*/
|
|
777
|
-
export type ParameterVisibilityDecorator = (context: DecoratorContext, target: Operation, ...visibilities: EnumValue[]) => void;
|
|
777
|
+
export type ParameterVisibilityDecorator = (context: DecoratorContext, target: Operation, ...visibilities: EnumValue[]) => DecoratorValidatorCallbacks | void;
|
|
778
778
|
/**
|
|
779
779
|
* Declares the visibility constraint of the return type of a given operation.
|
|
780
780
|
*
|
|
@@ -785,7 +785,7 @@ export type ParameterVisibilityDecorator = (context: DecoratorContext, target: O
|
|
|
785
785
|
*
|
|
786
786
|
* @param visibilities List of visibility modifiers that apply to the return type of this operation.
|
|
787
787
|
*/
|
|
788
|
-
export type ReturnTypeVisibilityDecorator = (context: DecoratorContext, target: Operation, ...visibilities: EnumValue[]) => void;
|
|
788
|
+
export type ReturnTypeVisibilityDecorator = (context: DecoratorContext, target: Operation, ...visibilities: EnumValue[]) => DecoratorValidatorCallbacks | void;
|
|
789
789
|
/**
|
|
790
790
|
* Declares the default visibility modifiers for a visibility class.
|
|
791
791
|
*
|
|
@@ -796,7 +796,7 @@ export type ReturnTypeVisibilityDecorator = (context: DecoratorContext, target:
|
|
|
796
796
|
*
|
|
797
797
|
* @param visibilities the list of modifiers to use as the default visibility modifiers.
|
|
798
798
|
*/
|
|
799
|
-
export type DefaultVisibilityDecorator = (context: DecoratorContext, target: Enum, ...visibilities: EnumValue[]) => void;
|
|
799
|
+
export type DefaultVisibilityDecorator = (context: DecoratorContext, target: Enum, ...visibilities: EnumValue[]) => DecoratorValidatorCallbacks | void;
|
|
800
800
|
/**
|
|
801
801
|
* Applies the given visibility filter to the properties of the target model.
|
|
802
802
|
*
|
|
@@ -825,7 +825,7 @@ export type DefaultVisibilityDecorator = (context: DecoratorContext, target: Enu
|
|
|
825
825
|
* }
|
|
826
826
|
* ```
|
|
827
827
|
*/
|
|
828
|
-
export type WithVisibilityFilterDecorator = (context: DecoratorContext, target: Model, filter: VisibilityFilter, nameTemplate?: string) => void;
|
|
828
|
+
export type WithVisibilityFilterDecorator = (context: DecoratorContext, target: Model, filter: VisibilityFilter, nameTemplate?: string) => DecoratorValidatorCallbacks | void;
|
|
829
829
|
/**
|
|
830
830
|
* Transforms the `target` model to include only properties that are visible during the
|
|
831
831
|
* "Update" lifecycle phase.
|
|
@@ -858,7 +858,7 @@ export type WithVisibilityFilterDecorator = (context: DecoratorContext, target:
|
|
|
858
858
|
* }
|
|
859
859
|
* ```
|
|
860
860
|
*/
|
|
861
|
-
export type WithLifecycleUpdateDecorator = (context: DecoratorContext, target: Model, nameTemplate?: string) => void;
|
|
861
|
+
export type WithLifecycleUpdateDecorator = (context: DecoratorContext, target: Model, nameTemplate?: string) => DecoratorValidatorCallbacks | void;
|
|
862
862
|
export type TypeSpecDecorators = {
|
|
863
863
|
mediaTypeHint: MediaTypeHintDecorator;
|
|
864
864
|
encode: EncodeDecorator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypeSpec.d.ts","sourceRoot":"","sources":["../../generated-defs/TypeSpec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,IAAI,EACJ,SAAS,EACT,SAAS,EACT,KAAK,EACL,aAAa,EACb,SAAS,EACT,OAAO,EACP,SAAS,EACT,MAAM,EACN,WAAW,EACX,IAAI,EACJ,KAAK,EACL,YAAY,EACb,MAAM,iBA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AC;IACpB,MAAM,EAAE,eAAe,CAAC;IACxB,SAAS,EAAE,kBAAkB,CAAC;IAC9B,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,SAAS,EAAE,kBAAkB,CAAC;IAC9B,iBAAiB,EAAE,0BAA0B,CAAC;IAC9C,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,SAAS,EAAE,kBAAkB,CAAC;IAC9B,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,WAAW,EAAE,oBAAoB,CAAC;IAClC,eAAe,EAAE,wBAAwB,CAAC;IAC1C,UAAU,EAAE,mBAAmB,CAAC;IAChC,SAAS,EAAE,kBAAkB,CAAC;IAC9B,gBAAgB,EAAE,yBAAyB,CAAC;IAC5C,cAAc,EAAE,uBAAuB,CAAC;IACxC,mBAAmB,EAAE,4BAA4B,CAAC;IAClD,oBAAoB,EAAE,6BAA6B,CAAC;IACpD,iBAAiB,EAAE,0BAA0B,CAAC;IAC9C,oBAAoB,EAAE,6BAA6B,CAAC;IACpD,mBAAmB,EAAE,4BAA4B,CAAC;CACnD,CAAC"}
|
package/dist/manifest.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checker.d.ts","sourceRoot":"","sources":["../../../src/core/checker.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAQvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAY5C,OAAO,EAML,cAAc,EACd,kBAAkB,
|
|
1
|
+
{"version":3,"file":"checker.d.ts","sourceRoot":"","sources":["../../../src/core/checker.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAQvC,OAAO,KAAK,EAAE,OAAO,EAAE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,EAAE,MAAM,CAAC;CACjB;AASD,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,GAAG,OAAO,CA02L/E;AAgED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,aAAa,KAAK,OAAO,GAC5C,KAAK,CAyEP;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,CAAC,QAAQ,EAAE,aAAa,KAAK,OAAO,GAC3C,KAAK,CAqCP;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,aAAa,GAAG,aAAa,GAAG,SAAS,CAcxF;AAED;;;;;;;GAOG;AACH,wBAAiB,uBAAuB,CAAC,KAAK,EAAE,KAAK,2CAapD"}
|
package/dist/src/core/checker.js
CHANGED
|
@@ -52,6 +52,7 @@ export function createChecker(program, resolver) {
|
|
|
52
52
|
* Key is the SymId of a node. It can be retrieved with getNodeSymId(node)
|
|
53
53
|
*/
|
|
54
54
|
const pendingResolutions = new PendingResolutions();
|
|
55
|
+
const postCheckValidators = [];
|
|
55
56
|
const typespecNamespaceBinding = resolver.symbols.global.exports.get("TypeSpec");
|
|
56
57
|
if (typespecNamespaceBinding) {
|
|
57
58
|
initializeTypeSpecIntrinsics();
|
|
@@ -2473,6 +2474,7 @@ export function createChecker(program, resolver) {
|
|
|
2473
2474
|
}
|
|
2474
2475
|
internalDecoratorValidation();
|
|
2475
2476
|
assertNoPendingResolutions();
|
|
2477
|
+
runPostValidators(postCheckValidators);
|
|
2476
2478
|
}
|
|
2477
2479
|
function assertNoPendingResolutions() {
|
|
2478
2480
|
if (waitingForResolution.size === 0) {
|
|
@@ -4378,17 +4380,36 @@ export function createChecker(program, resolver) {
|
|
|
4378
4380
|
function finishType(typeDef, options = {}) {
|
|
4379
4381
|
stats.finishedTypes++;
|
|
4380
4382
|
if (!options.skipDecorators) {
|
|
4383
|
+
let postSelfValidators = [];
|
|
4381
4384
|
if ("decorators" in typeDef) {
|
|
4382
|
-
|
|
4383
|
-
applyDecoratorToType(program, decApp, typeDef);
|
|
4384
|
-
}
|
|
4385
|
+
postSelfValidators = applyDecoratorsToType(typeDef);
|
|
4385
4386
|
}
|
|
4386
4387
|
typeDef.isFinished = true;
|
|
4387
4388
|
Object.setPrototypeOf(typeDef, typePrototype);
|
|
4389
|
+
runPostValidators(postSelfValidators);
|
|
4388
4390
|
}
|
|
4389
4391
|
markAsChecked(typeDef);
|
|
4390
4392
|
return typeDef;
|
|
4391
4393
|
}
|
|
4394
|
+
function applyDecoratorsToType(typeDef) {
|
|
4395
|
+
const postSelfValidators = [];
|
|
4396
|
+
for (const decApp of typeDef.decorators) {
|
|
4397
|
+
const validators = applyDecoratorToType(program, decApp, typeDef);
|
|
4398
|
+
if (validators?.onTargetFinish) {
|
|
4399
|
+
postSelfValidators.push(validators.onTargetFinish);
|
|
4400
|
+
}
|
|
4401
|
+
if (validators?.onGraphFinish) {
|
|
4402
|
+
postCheckValidators.push(validators.onGraphFinish);
|
|
4403
|
+
}
|
|
4404
|
+
}
|
|
4405
|
+
return postSelfValidators;
|
|
4406
|
+
}
|
|
4407
|
+
/** Run a list of post validator */
|
|
4408
|
+
function runPostValidators(validators) {
|
|
4409
|
+
for (const validator of validators) {
|
|
4410
|
+
program.reportDiagnostics(validator());
|
|
4411
|
+
}
|
|
4412
|
+
}
|
|
4392
4413
|
function markAsChecked(type) {
|
|
4393
4414
|
if (!type.creating)
|
|
4394
4415
|
return;
|
|
@@ -4970,7 +4991,7 @@ function applyDecoratorToType(program, decApp, target) {
|
|
|
4970
4991
|
const args = decApp.args.map((x) => x.jsValue);
|
|
4971
4992
|
const fn = decApp.decorator;
|
|
4972
4993
|
const context = createDecoratorContext(program, decApp);
|
|
4973
|
-
fn(context, target, ...args);
|
|
4994
|
+
return fn(context, target, ...args);
|
|
4974
4995
|
}
|
|
4975
4996
|
catch (error) {
|
|
4976
4997
|
// do not fail the language server for exceptions in decorators
|