@zyno-io/ts-server-foundation 26.727.545 → 26.727.717
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/src/app/base.js +1 -1
- package/dist/src/database/database.js +1 -1
- package/dist/src/database/query.js +1 -1
- package/dist/src/http/request-logging.js +1 -1
- package/dist/src/http/request.js +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/reflection/type-utils.d.ts.map +1 -1
- package/dist/src/reflection/type-utils.js +4 -1
- package/dist/src/reflection/type-utils.js.map +1 -1
- package/dist/src/services/index.js +1 -1
- package/dist/src/services/mail/index.js +2 -2
- package/dist/src/services/mail/postmark.js +1 -1
- package/dist/src/services/mail/smtp.js +1 -1
- package/dist/src/testing/index.js +1 -1
- package/dist/src/type-compiler/go/plugin_test.go +10 -0
- package/dist/src/type-compiler/go/type_expr.go +12 -1
- package/package.json +1 -1
|
@@ -198,6 +198,12 @@ func genericTypeExpr(info *fileInfo, reg *registry, name string, args []string,
|
|
|
198
198
|
return validationMarker("MinLength", "minLength", literalArg(firstArg(args)))
|
|
199
199
|
case "MaxLength":
|
|
200
200
|
return validationMarker("MaxLength", "maxLength", literalArg(firstArg(args)))
|
|
201
|
+
case "Length":
|
|
202
|
+
value := literalArg(firstArg(args))
|
|
203
|
+
return "{kind: 13, typeName: \"Length\", types: [{kind: 6}, " +
|
|
204
|
+
validationMarker("MinLength", "minLength", value) + ", " +
|
|
205
|
+
validationMarker("MaxLength", "maxLength", value) + ", " +
|
|
206
|
+
typeAnnotationMarker("Length", "tsf:length", value) + "]}"
|
|
201
207
|
case "Minimum":
|
|
202
208
|
return validationMarker("Minimum", "minimum", literalArg(firstArg(args)))
|
|
203
209
|
case "GreaterThan":
|
|
@@ -514,7 +520,12 @@ func utilityTypeExpr(info *fileInfo, reg *registry, name string, args []string,
|
|
|
514
520
|
}
|
|
515
521
|
|
|
516
522
|
sourceExpr := typeExprCtx(info, reg, firstArg(args), ctx)
|
|
517
|
-
|
|
523
|
+
keysExpr := "[]"
|
|
524
|
+
if name == "Pick" || name == "Omit" {
|
|
525
|
+
keysExpr = utilityKeysExpr(firstArg(args[1:]))
|
|
526
|
+
}
|
|
527
|
+
return "{kind: 18, typeName: " + quote(name) + ", utilityType: " + quote(name) + ", typeArguments: [" + sourceExpr +
|
|
528
|
+
"], utilityKeys: " + keysExpr + ", types: [" + renderUtilityProperties(owner, reg, props, ctx) + "]}", true
|
|
518
529
|
}
|
|
519
530
|
|
|
520
531
|
func runtimeUtilityTypeExpr(info *fileInfo, reg *registry, name string, args []string, ctx *typeContext) (string, bool) {
|