@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.
- package/dist/generated-defs/TypeSpec.d.ts +66 -32
- package/dist/generated-defs/TypeSpec.d.ts.map +1 -1
- package/dist/manifest.js +2 -2
- package/dist/src/core/binder.d.ts +1 -1
- package/dist/src/core/checker.d.ts.map +1 -1
- package/dist/src/core/checker.js +1 -2
- package/dist/src/core/checker.js.map +1 -1
- package/dist/src/core/compiler-code-fixes/convert-to-value.codefix.d.ts +10 -0
- package/dist/src/core/compiler-code-fixes/convert-to-value.codefix.d.ts.map +1 -0
- package/dist/src/core/compiler-code-fixes/convert-to-value.codefix.js +68 -0
- package/dist/src/core/compiler-code-fixes/convert-to-value.codefix.js.map +1 -0
- package/dist/src/core/visibility/core.d.ts +13 -0
- package/dist/src/core/visibility/core.d.ts.map +1 -1
- package/dist/src/core/visibility/core.js +19 -20
- package/dist/src/core/visibility/core.js.map +1 -1
- package/dist/src/core/visibility/index.d.ts +1 -1
- package/dist/src/core/visibility/index.d.ts.map +1 -1
- package/dist/src/core/visibility/index.js +1 -1
- package/dist/src/core/visibility/index.js.map +1 -1
- package/dist/src/core/visibility/lifecycle.d.ts.map +1 -1
- package/dist/src/core/visibility/lifecycle.js +8 -0
- package/dist/src/core/visibility/lifecycle.js.map +1 -1
- package/dist/src/emitter-framework/types.d.ts.map +1 -1
- package/dist/src/experimental/typekit/kits/literal.d.ts +61 -52
- package/dist/src/experimental/typekit/kits/literal.d.ts.map +1 -1
- package/dist/src/experimental/typekit/kits/literal.js.map +1 -1
- package/dist/src/experimental/typekit/kits/model-property.d.ts +11 -3
- package/dist/src/experimental/typekit/kits/model-property.d.ts.map +1 -1
- package/dist/src/experimental/typekit/kits/model-property.js.map +1 -1
- package/dist/src/experimental/typekit/kits/model.d.ts +41 -15
- package/dist/src/experimental/typekit/kits/model.d.ts.map +1 -1
- package/dist/src/experimental/typekit/kits/model.js +4 -0
- package/dist/src/experimental/typekit/kits/model.js.map +1 -1
- package/dist/src/experimental/typekit/kits/scalar.d.ts +349 -344
- package/dist/src/experimental/typekit/kits/scalar.d.ts.map +1 -1
- package/dist/src/experimental/typekit/kits/scalar.js.map +1 -1
- package/dist/src/experimental/typekit/kits/type.d.ts +5 -4
- package/dist/src/experimental/typekit/kits/type.d.ts.map +1 -1
- package/dist/src/experimental/typekit/kits/type.js.map +1 -1
- package/dist/src/experimental/typekit/kits/union-variant.d.ts +28 -15
- package/dist/src/experimental/typekit/kits/union-variant.d.ts.map +1 -1
- package/dist/src/experimental/typekit/kits/union-variant.js.map +1 -1
- package/dist/src/experimental/typekit/kits/union.d.ts +39 -30
- package/dist/src/experimental/typekit/kits/union.d.ts.map +1 -1
- package/dist/src/experimental/typekit/kits/union.js.map +1 -1
- package/dist/src/lib/visibility.d.ts +54 -0
- package/dist/src/lib/visibility.d.ts.map +1 -1
- package/dist/src/lib/visibility.js +84 -1
- package/dist/src/lib/visibility.js.map +1 -1
- package/dist/src/server/lib-provider.d.ts +23 -0
- package/dist/src/server/lib-provider.d.ts.map +1 -0
- package/dist/src/server/{emitter-provider.js → lib-provider.js} +25 -23
- package/dist/src/server/lib-provider.js.map +1 -0
- package/dist/src/server/serverlib.d.ts.map +1 -1
- package/dist/src/server/serverlib.js +5 -2
- package/dist/src/server/serverlib.js.map +1 -1
- package/dist/src/server/tspconfig/completion.d.ts +5 -3
- package/dist/src/server/tspconfig/completion.d.ts.map +1 -1
- package/dist/src/server/tspconfig/completion.js +234 -16
- package/dist/src/server/tspconfig/completion.js.map +1 -1
- package/dist/src/server/yaml-resolver.d.ts +20 -2
- package/dist/src/server/yaml-resolver.d.ts.map +1 -1
- package/dist/src/server/yaml-resolver.js +39 -6
- package/dist/src/server/yaml-resolver.js.map +1 -1
- package/lib/std/visibility.tsp +210 -36
- package/package.json +15 -11
- package/templates/__snapshots__/rest/.gitignore +9 -0
- package/templates/__snapshots__/rest/main.tsp +40 -0
- package/templates/__snapshots__/rest/package.json +20 -0
- package/templates/__snapshots__/rest/tspconfig.yaml +16 -0
- package/templates/rest/main.tsp +40 -0
- package/templates/scaffolding.json +51 -5
- package/dist/src/core/compiler-code-fixes/model-to-object-literal.codefix.d.ts +0 -6
- package/dist/src/core/compiler-code-fixes/model-to-object-literal.codefix.d.ts.map +0 -1
- package/dist/src/core/compiler-code-fixes/model-to-object-literal.codefix.js +0 -15
- package/dist/src/core/compiler-code-fixes/model-to-object-literal.codefix.js.map +0 -1
- package/dist/src/core/compiler-code-fixes/tuple-to-array-value.codefix.d.ts +0 -6
- package/dist/src/core/compiler-code-fixes/tuple-to-array-value.codefix.d.ts.map +0 -1
- package/dist/src/core/compiler-code-fixes/tuple-to-array-value.codefix.js +0 -15
- package/dist/src/core/compiler-code-fixes/tuple-to-array-value.codefix.js.map +0 -1
- package/dist/src/server/emitter-provider.d.ts +0 -22
- package/dist/src/server/emitter-provider.d.ts.map +0 -1
- 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":"
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../../../src/experimental/typekit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