@typespec/compiler 1.19.0-dev.2 → 1.19.0-dev.3
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.
|
@@ -343,7 +343,7 @@ export type MaxItemsDecorator = (context: DecoratorContext, target: Type | Model
|
|
|
343
343
|
* @example
|
|
344
344
|
* ```typespec
|
|
345
345
|
* @minValue(18)
|
|
346
|
-
* scalar Age
|
|
346
|
+
* scalar Age extends int32;
|
|
347
347
|
* ```
|
|
348
348
|
*/
|
|
349
349
|
export type MinValueDecorator = (context: DecoratorContext, target: Scalar | ModelProperty, value: Numeric | ScalarValue | ScalarValue | ScalarValue | ScalarValue | ScalarValue) => DecoratorValidatorCallbacks | void;
|
|
@@ -354,7 +354,7 @@ export type MinValueDecorator = (context: DecoratorContext, target: Scalar | Mod
|
|
|
354
354
|
* @example
|
|
355
355
|
* ```typespec
|
|
356
356
|
* @maxValue(200)
|
|
357
|
-
* scalar Age
|
|
357
|
+
* scalar Age extends int32;
|
|
358
358
|
* ```
|
|
359
359
|
*/
|
|
360
360
|
export type MaxValueDecorator = (context: DecoratorContext, target: Scalar | ModelProperty, value: Numeric | ScalarValue | ScalarValue | ScalarValue | ScalarValue | ScalarValue) => DecoratorValidatorCallbacks | void;
|
|
@@ -366,7 +366,7 @@ export type MaxValueDecorator = (context: DecoratorContext, target: Scalar | Mod
|
|
|
366
366
|
* @example
|
|
367
367
|
* ```typespec
|
|
368
368
|
* @minValueExclusive(0)
|
|
369
|
-
* scalar distance
|
|
369
|
+
* scalar distance extends float64;
|
|
370
370
|
* ```
|
|
371
371
|
*/
|
|
372
372
|
export type MinValueExclusiveDecorator = (context: DecoratorContext, target: Scalar | ModelProperty, value: Numeric | ScalarValue | ScalarValue | ScalarValue | ScalarValue | ScalarValue) => DecoratorValidatorCallbacks | void;
|
|
@@ -378,7 +378,7 @@ export type MinValueExclusiveDecorator = (context: DecoratorContext, target: Sca
|
|
|
378
378
|
* @example
|
|
379
379
|
* ```typespec
|
|
380
380
|
* @maxValueExclusive(50)
|
|
381
|
-
* scalar distance
|
|
381
|
+
* scalar distance extends float64;
|
|
382
382
|
* ```
|
|
383
383
|
*/
|
|
384
384
|
export type MaxValueExclusiveDecorator = (context: DecoratorContext, target: Scalar | ModelProperty, value: Numeric | ScalarValue | ScalarValue | ScalarValue | ScalarValue | ScalarValue) => DecoratorValidatorCallbacks | void;
|
|
@@ -388,7 +388,7 @@ export type MaxValueExclusiveDecorator = (context: DecoratorContext, target: Sca
|
|
|
388
388
|
* @example
|
|
389
389
|
* ```typespec
|
|
390
390
|
* @secret
|
|
391
|
-
* scalar Password
|
|
391
|
+
* scalar Password extends string;
|
|
392
392
|
* ```
|
|
393
393
|
*/
|
|
394
394
|
export type SecretDecorator = (context: DecoratorContext, target: Scalar | ModelProperty | Model | Union | Enum) => DecoratorValidatorCallbacks | void;
|
package/dist/manifest.js
CHANGED
package/lib/std/decorators.tsp
CHANGED
|
@@ -236,7 +236,7 @@ extern dec maxItems(target: unknown[] | ModelProperty, value: valueof integer);
|
|
|
236
236
|
* @example
|
|
237
237
|
* ```typespec
|
|
238
238
|
* @minValue(18)
|
|
239
|
-
* scalar Age
|
|
239
|
+
* scalar Age extends int32;
|
|
240
240
|
* ```
|
|
241
241
|
*/
|
|
242
242
|
extern dec minValue(
|
|
@@ -251,7 +251,7 @@ extern dec minValue(
|
|
|
251
251
|
* @example
|
|
252
252
|
* ```typespec
|
|
253
253
|
* @maxValue(200)
|
|
254
|
-
* scalar Age
|
|
254
|
+
* scalar Age extends int32;
|
|
255
255
|
* ```
|
|
256
256
|
*/
|
|
257
257
|
extern dec maxValue(
|
|
@@ -267,7 +267,7 @@ extern dec maxValue(
|
|
|
267
267
|
* @example
|
|
268
268
|
* ```typespec
|
|
269
269
|
* @minValueExclusive(0)
|
|
270
|
-
* scalar distance
|
|
270
|
+
* scalar distance extends float64;
|
|
271
271
|
* ```
|
|
272
272
|
*/
|
|
273
273
|
extern dec minValueExclusive(
|
|
@@ -283,7 +283,7 @@ extern dec minValueExclusive(
|
|
|
283
283
|
* @example
|
|
284
284
|
* ```typespec
|
|
285
285
|
* @maxValueExclusive(50)
|
|
286
|
-
* scalar distance
|
|
286
|
+
* scalar distance extends float64;
|
|
287
287
|
* ```
|
|
288
288
|
*/
|
|
289
289
|
extern dec maxValueExclusive(
|
|
@@ -297,7 +297,7 @@ extern dec maxValueExclusive(
|
|
|
297
297
|
* @example
|
|
298
298
|
* ```typespec
|
|
299
299
|
* @secret
|
|
300
|
-
* scalar Password
|
|
300
|
+
* scalar Password extends string;
|
|
301
301
|
* ```
|
|
302
302
|
*/
|
|
303
303
|
extern dec secret(target: Scalar | ModelProperty | Model | Union | Enum);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typespec/compiler",
|
|
3
|
-
"version": "1.19.0-dev.
|
|
3
|
+
"version": "1.19.0-dev.3",
|
|
4
4
|
"description": "TypeSpec compiler and standard library",
|
|
5
5
|
"author": "Microsoft Corporation",
|
|
6
6
|
"license": "MIT",
|
|
@@ -99,9 +99,9 @@
|
|
|
99
99
|
"mustache": "^4.2.0",
|
|
100
100
|
"picocolors": "^1.1.1",
|
|
101
101
|
"prettier": "^3.9.10",
|
|
102
|
-
"semver": "^7.8.
|
|
102
|
+
"semver": "^7.8.6",
|
|
103
103
|
"tar": "^7.5.22",
|
|
104
|
-
"temporal-polyfill": "^1.0.
|
|
104
|
+
"temporal-polyfill": "^1.0.8",
|
|
105
105
|
"vscode-languageserver": "^11.0.0",
|
|
106
106
|
"vscode-languageserver-textdocument": "^1.0.16",
|
|
107
107
|
"yaml": "^2.9.0",
|
|
@@ -109,17 +109,17 @@
|
|
|
109
109
|
},
|
|
110
110
|
"devDependencies": {
|
|
111
111
|
"@types/mustache": "^4.2.6",
|
|
112
|
-
"@types/node": "^26.6.
|
|
112
|
+
"@types/node": "^26.6.6",
|
|
113
113
|
"@types/semver": "^7.8.0",
|
|
114
114
|
"@types/yargs": "^17.0.35",
|
|
115
115
|
"@typespec/internal-build-utils": "^0.88.0 || >= 0.89.0-dev.0",
|
|
116
|
-
"@vitest/coverage-v8": "^5.0
|
|
117
|
-
"@vitest/ui": "^5.0
|
|
116
|
+
"@vitest/coverage-v8": "^5.1.0",
|
|
117
|
+
"@vitest/ui": "^5.1.0",
|
|
118
118
|
"pathe": "^2.0.3",
|
|
119
|
-
"rimraf": "^6.1.
|
|
119
|
+
"rimraf": "^6.1.4",
|
|
120
120
|
"tmlanguage-generator": "^0.6.8 || >= 0.6.9-dev.8",
|
|
121
121
|
"typescript": "npm:@typescript/typescript6@~6.0.2",
|
|
122
|
-
"vitest": "^5.0
|
|
122
|
+
"vitest": "^5.1.0",
|
|
123
123
|
"vscode-oniguruma": "^2.0.1",
|
|
124
124
|
"vscode-textmate": "^9.3.2"
|
|
125
125
|
},
|