@typespec/compiler 0.65.0-dev.1 → 0.65.0-dev.10

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.
Files changed (83) hide show
  1. package/dist/generated-defs/TypeSpec.d.ts +66 -32
  2. package/dist/generated-defs/TypeSpec.d.ts.map +1 -1
  3. package/dist/manifest.js +2 -2
  4. package/dist/src/core/binder.d.ts +1 -1
  5. package/dist/src/core/checker.d.ts.map +1 -1
  6. package/dist/src/core/checker.js +1 -2
  7. package/dist/src/core/checker.js.map +1 -1
  8. package/dist/src/core/compiler-code-fixes/convert-to-value.codefix.d.ts +10 -0
  9. package/dist/src/core/compiler-code-fixes/convert-to-value.codefix.d.ts.map +1 -0
  10. package/dist/src/core/compiler-code-fixes/convert-to-value.codefix.js +68 -0
  11. package/dist/src/core/compiler-code-fixes/convert-to-value.codefix.js.map +1 -0
  12. package/dist/src/core/visibility/core.d.ts +13 -0
  13. package/dist/src/core/visibility/core.d.ts.map +1 -1
  14. package/dist/src/core/visibility/core.js +19 -20
  15. package/dist/src/core/visibility/core.js.map +1 -1
  16. package/dist/src/core/visibility/index.d.ts +1 -1
  17. package/dist/src/core/visibility/index.d.ts.map +1 -1
  18. package/dist/src/core/visibility/index.js +1 -1
  19. package/dist/src/core/visibility/index.js.map +1 -1
  20. package/dist/src/core/visibility/lifecycle.d.ts.map +1 -1
  21. package/dist/src/core/visibility/lifecycle.js +8 -0
  22. package/dist/src/core/visibility/lifecycle.js.map +1 -1
  23. package/dist/src/emitter-framework/types.d.ts.map +1 -1
  24. package/dist/src/experimental/typekit/kits/literal.d.ts +61 -52
  25. package/dist/src/experimental/typekit/kits/literal.d.ts.map +1 -1
  26. package/dist/src/experimental/typekit/kits/literal.js.map +1 -1
  27. package/dist/src/experimental/typekit/kits/model-property.d.ts +11 -3
  28. package/dist/src/experimental/typekit/kits/model-property.d.ts.map +1 -1
  29. package/dist/src/experimental/typekit/kits/model-property.js.map +1 -1
  30. package/dist/src/experimental/typekit/kits/model.d.ts +41 -15
  31. package/dist/src/experimental/typekit/kits/model.d.ts.map +1 -1
  32. package/dist/src/experimental/typekit/kits/model.js +4 -0
  33. package/dist/src/experimental/typekit/kits/model.js.map +1 -1
  34. package/dist/src/experimental/typekit/kits/scalar.d.ts +349 -344
  35. package/dist/src/experimental/typekit/kits/scalar.d.ts.map +1 -1
  36. package/dist/src/experimental/typekit/kits/scalar.js.map +1 -1
  37. package/dist/src/experimental/typekit/kits/type.d.ts +5 -4
  38. package/dist/src/experimental/typekit/kits/type.d.ts.map +1 -1
  39. package/dist/src/experimental/typekit/kits/type.js.map +1 -1
  40. package/dist/src/experimental/typekit/kits/union-variant.d.ts +28 -15
  41. package/dist/src/experimental/typekit/kits/union-variant.d.ts.map +1 -1
  42. package/dist/src/experimental/typekit/kits/union-variant.js.map +1 -1
  43. package/dist/src/experimental/typekit/kits/union.d.ts +39 -30
  44. package/dist/src/experimental/typekit/kits/union.d.ts.map +1 -1
  45. package/dist/src/experimental/typekit/kits/union.js.map +1 -1
  46. package/dist/src/lib/visibility.d.ts +54 -0
  47. package/dist/src/lib/visibility.d.ts.map +1 -1
  48. package/dist/src/lib/visibility.js +84 -1
  49. package/dist/src/lib/visibility.js.map +1 -1
  50. package/dist/src/server/lib-provider.d.ts +23 -0
  51. package/dist/src/server/lib-provider.d.ts.map +1 -0
  52. package/dist/src/server/{emitter-provider.js → lib-provider.js} +25 -23
  53. package/dist/src/server/lib-provider.js.map +1 -0
  54. package/dist/src/server/serverlib.d.ts.map +1 -1
  55. package/dist/src/server/serverlib.js +5 -2
  56. package/dist/src/server/serverlib.js.map +1 -1
  57. package/dist/src/server/tspconfig/completion.d.ts +5 -3
  58. package/dist/src/server/tspconfig/completion.d.ts.map +1 -1
  59. package/dist/src/server/tspconfig/completion.js +234 -16
  60. package/dist/src/server/tspconfig/completion.js.map +1 -1
  61. package/dist/src/server/yaml-resolver.d.ts +20 -2
  62. package/dist/src/server/yaml-resolver.d.ts.map +1 -1
  63. package/dist/src/server/yaml-resolver.js +39 -6
  64. package/dist/src/server/yaml-resolver.js.map +1 -1
  65. package/lib/std/visibility.tsp +210 -36
  66. package/package.json +15 -11
  67. package/templates/__snapshots__/rest/.gitignore +9 -0
  68. package/templates/__snapshots__/rest/main.tsp +40 -0
  69. package/templates/__snapshots__/rest/package.json +20 -0
  70. package/templates/__snapshots__/rest/tspconfig.yaml +16 -0
  71. package/templates/rest/main.tsp +40 -0
  72. package/templates/scaffolding.json +51 -5
  73. package/dist/src/core/compiler-code-fixes/model-to-object-literal.codefix.d.ts +0 -6
  74. package/dist/src/core/compiler-code-fixes/model-to-object-literal.codefix.d.ts.map +0 -1
  75. package/dist/src/core/compiler-code-fixes/model-to-object-literal.codefix.js +0 -15
  76. package/dist/src/core/compiler-code-fixes/model-to-object-literal.codefix.js.map +0 -1
  77. package/dist/src/core/compiler-code-fixes/tuple-to-array-value.codefix.d.ts +0 -6
  78. package/dist/src/core/compiler-code-fixes/tuple-to-array-value.codefix.d.ts.map +0 -1
  79. package/dist/src/core/compiler-code-fixes/tuple-to-array-value.codefix.js +0 -15
  80. package/dist/src/core/compiler-code-fixes/tuple-to-array-value.codefix.js.map +0 -1
  81. package/dist/src/server/emitter-provider.d.ts +0 -22
  82. package/dist/src/server/emitter-provider.d.ts.map +0 -1
  83. package/dist/src/server/emitter-provider.js.map +0 -1
@@ -1,3 +1,4 @@
1
+ import { getEffectiveModelType } from "../../../core/checker.js";
1
2
  import { createRekeyableMap } from "../../../utils/misc.js";
2
3
  import { defineKit } from "../define-kit.js";
3
4
  import { decoratorApplication } from "../utils.js";
@@ -21,6 +22,9 @@ export const ModelKit = defineKit({
21
22
  is(type) {
22
23
  return type.kind === "Model";
23
24
  },
25
+ getEffectiveModel(model, filter) {
26
+ return getEffectiveModelType(this.program, model, filter);
27
+ },
24
28
  },
25
29
  });
26
30
  //# sourceMappingURL=model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"model.js","sourceRoot":"","sources":["../../../../../src/experimental/typekit/kits/model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAiB,MAAM,aAAa,CAAC;AAqDlE,MAAM,CAAC,MAAM,QAAQ,GAAG,SAAS,CAAW;IAC1C,KAAK,EAAE;QACL,MAAM,CAAC,IAAI;YACT,MAAM,UAAU,GAAG,kBAAkB,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACnF,MAAM,KAAK,GAAU,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC;gBACnD,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,IAAI,CAAC,IAAI,IAAI,EAAE;gBACrB,UAAU,EAAE,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC;gBACvD,UAAU,EAAE,UAAU;gBACtB,UAAU,EAAE,IAAI,CAAC,IAAI,KAAK,SAAS;gBACnC,IAAI,EAAE,SAAgB;gBACtB,aAAa,EAAE,IAAI,CAAC,aAAa,IAAI,EAAE;gBACvC,YAAY,EAAE,IAAI,CAAC,YAAY,IAAI,EAAE;aACtC,CAAC,CAAC;YAEH,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;YACvC,OAAO,KAAK,CAAC;QACf,CAAC;QAED,EAAE,CAAC,IAAI;YACL,OAAO,IAAI,CAAC,IAAI,KAAK,OAAO,CAAC;QAC/B,CAAC;KACF;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"model.js","sourceRoot":"","sources":["../../../../../src/experimental/typekit/kits/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEjE,OAAO,EAAE,kBAAkB,EAAE,M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