@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.
@@ -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
- return "{kind: 18, typeName: " + quote(name) + ", typeArguments: [" + sourceExpr + "], types: [" + renderUtilityProperties(owner, reg, props, ctx) + "]}", true
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyno-io/ts-server-foundation",
3
- "version": "26.727.545",
3
+ "version": "26.727.717",
4
4
  "description": "TypeScript server foundation with reflected type metadata",
5
5
  "license": "MIT",
6
6
  "bin": {