@typespec/compiler 0.57.0-dev.0 → 0.57.0-dev.5

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 (194) hide show
  1. package/dist/generated-defs/TypeSpec.d.ts +9 -9
  2. package/dist/generated-defs/TypeSpec.d.ts.map +1 -1
  3. package/dist/manifest.js +2 -2
  4. package/dist/src/config/types.d.ts +2 -2
  5. package/dist/src/config/types.d.ts.map +1 -1
  6. package/dist/src/core/binder.d.ts +1 -1
  7. package/dist/src/core/binder.d.ts.map +1 -1
  8. package/dist/src/core/binder.js +16 -3
  9. package/dist/src/core/binder.js.map +1 -1
  10. package/dist/src/core/checker.d.ts +11 -9
  11. package/dist/src/core/checker.d.ts.map +1 -1
  12. package/dist/src/core/checker.js +1577 -241
  13. package/dist/src/core/checker.js.map +1 -1
  14. package/dist/src/core/compiler-code-fixes/model-to-object-literal.codefix.d.ts +6 -0
  15. package/dist/src/core/compiler-code-fixes/model-to-object-literal.codefix.d.ts.map +1 -0
  16. package/dist/src/core/compiler-code-fixes/model-to-object-literal.codefix.js +15 -0
  17. package/dist/src/core/compiler-code-fixes/model-to-object-literal.codefix.js.map +1 -0
  18. package/dist/src/core/compiler-code-fixes/tuple-to-array-value.codefix.d.ts +6 -0
  19. package/dist/src/core/compiler-code-fixes/tuple-to-array-value.codefix.d.ts.map +1 -0
  20. package/dist/src/core/compiler-code-fixes/tuple-to-array-value.codefix.js +15 -0
  21. package/dist/src/core/compiler-code-fixes/tuple-to-array-value.codefix.js.map +1 -0
  22. package/dist/src/core/decorator-utils.d.ts +5 -1
  23. package/dist/src/core/decorator-utils.d.ts.map +1 -1
  24. package/dist/src/core/decorator-utils.js +11 -1
  25. package/dist/src/core/decorator-utils.js.map +1 -1
  26. package/dist/src/core/deprecation.d.ts +1 -1
  27. package/dist/src/core/deprecation.d.ts.map +1 -1
  28. package/dist/src/core/diagnostic-creator.d.ts.map +1 -1
  29. package/dist/src/core/diagnostic-creator.js +1 -2
  30. package/dist/src/core/diagnostic-creator.js.map +1 -1
  31. package/dist/src/core/diagnostics.js +3 -3
  32. package/dist/src/core/diagnostics.js.map +1 -1
  33. package/dist/src/core/emitter-utils.d.ts +1 -1
  34. package/dist/src/core/emitter-utils.d.ts.map +1 -1
  35. package/dist/src/core/helpers/discriminator-utils.d.ts +2 -2
  36. package/dist/src/core/helpers/discriminator-utils.d.ts.map +1 -1
  37. package/dist/src/core/helpers/discriminator-utils.js +1 -1
  38. package/dist/src/core/helpers/discriminator-utils.js.map +1 -1
  39. package/dist/src/core/helpers/index.d.ts +1 -1
  40. package/dist/src/core/helpers/index.d.ts.map +1 -1
  41. package/dist/src/core/helpers/index.js +3 -1
  42. package/dist/src/core/helpers/index.js.map +1 -1
  43. package/dist/src/core/helpers/location-context.d.ts +2 -2
  44. package/dist/src/core/helpers/location-context.d.ts.map +1 -1
  45. package/dist/src/core/helpers/projected-names-utils.d.ts +2 -2
  46. package/dist/src/core/helpers/projected-names-utils.d.ts.map +1 -1
  47. package/dist/src/core/helpers/projected-names-utils.js.map +1 -1
  48. package/dist/src/core/helpers/string-template-utils.d.ts +6 -6
  49. package/dist/src/core/helpers/string-template-utils.d.ts.map +1 -1
  50. package/dist/src/core/helpers/string-template-utils.js +20 -33
  51. package/dist/src/core/helpers/string-template-utils.js.map +1 -1
  52. package/dist/src/core/helpers/type-name-utils.d.ts +3 -2
  53. package/dist/src/core/helpers/type-name-utils.d.ts.map +1 -1
  54. package/dist/src/core/helpers/type-name-utils.js +57 -8
  55. package/dist/src/core/helpers/type-name-utils.js.map +1 -1
  56. package/dist/src/core/index.d.ts +4 -1
  57. package/dist/src/core/index.d.ts.map +1 -1
  58. package/dist/src/core/index.js +4 -1
  59. package/dist/src/core/index.js.map +1 -1
  60. package/dist/src/core/intrinsic-type-state.d.ts +63 -0
  61. package/dist/src/core/intrinsic-type-state.d.ts.map +1 -0
  62. package/dist/src/core/intrinsic-type-state.js +160 -0
  63. package/dist/src/core/intrinsic-type-state.js.map +1 -0
  64. package/dist/src/core/js-marshaller.d.ts +13 -0
  65. package/dist/src/core/js-marshaller.d.ts.map +1 -0
  66. package/dist/src/core/js-marshaller.js +79 -0
  67. package/dist/src/core/js-marshaller.js.map +1 -0
  68. package/dist/src/core/library.d.ts +2 -1
  69. package/dist/src/core/library.d.ts.map +1 -1
  70. package/dist/src/core/library.js +3 -0
  71. package/dist/src/core/library.js.map +1 -1
  72. package/dist/src/core/linter.d.ts +1 -1
  73. package/dist/src/core/linter.d.ts.map +1 -1
  74. package/dist/src/core/linter.js +1 -1
  75. package/dist/src/core/linter.js.map +1 -1
  76. package/dist/src/core/messages.d.ts +235 -2
  77. package/dist/src/core/messages.d.ts.map +1 -1
  78. package/dist/src/core/messages.js +74 -1
  79. package/dist/src/core/messages.js.map +1 -1
  80. package/dist/src/core/numeric-ranges.d.ts +51 -0
  81. package/dist/src/core/numeric-ranges.d.ts.map +1 -0
  82. package/dist/src/core/numeric-ranges.js +30 -0
  83. package/dist/src/core/numeric-ranges.js.map +1 -0
  84. package/dist/src/core/parser.d.ts.map +1 -1
  85. package/dist/src/core/parser.js +232 -5
  86. package/dist/src/core/parser.js.map +1 -1
  87. package/dist/src/core/program.d.ts +2 -45
  88. package/dist/src/core/program.d.ts.map +1 -1
  89. package/dist/src/core/program.js +3 -127
  90. package/dist/src/core/program.js.map +1 -1
  91. package/dist/src/core/projected-program.d.ts +3 -0
  92. package/dist/src/core/projected-program.d.ts.map +1 -0
  93. package/dist/src/core/projected-program.js +4 -0
  94. package/dist/src/core/projected-program.js.map +1 -0
  95. package/dist/src/core/projection-members.d.ts +2 -2
  96. package/dist/src/core/projection-members.d.ts.map +1 -1
  97. package/dist/src/core/projector.d.ts +2 -2
  98. package/dist/src/core/projector.d.ts.map +1 -1
  99. package/dist/src/core/projector.js +12 -3
  100. package/dist/src/core/projector.js.map +1 -1
  101. package/dist/src/core/scanner.d.ts +42 -37
  102. package/dist/src/core/scanner.d.ts.map +1 -1
  103. package/dist/src/core/scanner.js +67 -46
  104. package/dist/src/core/scanner.js.map +1 -1
  105. package/dist/src/core/semantic-walker.d.ts +1 -1
  106. package/dist/src/core/semantic-walker.d.ts.map +1 -1
  107. package/dist/src/core/semantic-walker.js +12 -0
  108. package/dist/src/core/semantic-walker.js.map +1 -1
  109. package/dist/src/core/state-accessors.d.ts +46 -0
  110. package/dist/src/core/state-accessors.d.ts.map +1 -0
  111. package/dist/src/core/state-accessors.js +123 -0
  112. package/dist/src/core/state-accessors.js.map +1 -0
  113. package/dist/src/core/type-utils.d.ts +18 -7
  114. package/dist/src/core/type-utils.d.ts.map +1 -1
  115. package/dist/src/core/type-utils.js +24 -5
  116. package/dist/src/core/type-utils.js.map +1 -1
  117. package/dist/src/core/types.d.ts +224 -45
  118. package/dist/src/core/types.d.ts.map +1 -1
  119. package/dist/src/core/types.js +8 -0
  120. package/dist/src/core/types.js.map +1 -1
  121. package/dist/src/emitter-framework/asset-emitter.d.ts +1 -1
  122. package/dist/src/emitter-framework/asset-emitter.d.ts.map +1 -1
  123. package/dist/src/emitter-framework/asset-emitter.js +4 -1
  124. package/dist/src/emitter-framework/asset-emitter.js.map +1 -1
  125. package/dist/src/emitter-framework/ref-scope.d.ts +1 -1
  126. package/dist/src/emitter-framework/ref-scope.d.ts.map +1 -1
  127. package/dist/src/emitter-framework/reference-cycle.d.ts +2 -2
  128. package/dist/src/emitter-framework/reference-cycle.d.ts.map +1 -1
  129. package/dist/src/emitter-framework/reference-cycle.js +1 -1
  130. package/dist/src/emitter-framework/reference-cycle.js.map +1 -1
  131. package/dist/src/emitter-framework/type-emitter.d.ts +2 -1
  132. package/dist/src/emitter-framework/type-emitter.d.ts.map +1 -1
  133. package/dist/src/emitter-framework/type-emitter.js +10 -2
  134. package/dist/src/emitter-framework/type-emitter.js.map +1 -1
  135. package/dist/src/emitter-framework/types.d.ts +2 -2
  136. package/dist/src/emitter-framework/types.d.ts.map +1 -1
  137. package/dist/src/formatter/print/comment-handler.d.ts.map +1 -1
  138. package/dist/src/formatter/print/comment-handler.js +22 -0
  139. package/dist/src/formatter/print/comment-handler.js.map +1 -1
  140. package/dist/src/formatter/print/printer.d.ts +11 -5
  141. package/dist/src/formatter/print/printer.d.ts.map +1 -1
  142. package/dist/src/formatter/print/printer.js +95 -4
  143. package/dist/src/formatter/print/printer.js.map +1 -1
  144. package/dist/src/init/file-templating.d.ts +2 -2
  145. package/dist/src/init/file-templating.d.ts.map +1 -1
  146. package/dist/src/lib/decorators.d.ts +3 -55
  147. package/dist/src/lib/decorators.d.ts.map +1 -1
  148. package/dist/src/lib/decorators.js +30 -124
  149. package/dist/src/lib/decorators.js.map +1 -1
  150. package/dist/src/lib/encoded-names.d.ts +2 -2
  151. package/dist/src/lib/encoded-names.d.ts.map +1 -1
  152. package/dist/src/lib/intrinsic-decorators.d.ts +2 -2
  153. package/dist/src/lib/intrinsic-decorators.d.ts.map +1 -1
  154. package/dist/src/lib/intrinsic-decorators.js +7 -0
  155. package/dist/src/lib/intrinsic-decorators.js.map +1 -1
  156. package/dist/src/lib/service.d.ts +1 -1
  157. package/dist/src/lib/service.d.ts.map +1 -1
  158. package/dist/src/server/classify.d.ts.map +1 -1
  159. package/dist/src/server/classify.js +10 -0
  160. package/dist/src/server/classify.js.map +1 -1
  161. package/dist/src/server/completion.d.ts.map +1 -1
  162. package/dist/src/server/completion.js +6 -0
  163. package/dist/src/server/completion.js.map +1 -1
  164. package/dist/src/server/serverlib.js +2 -2
  165. package/dist/src/server/serverlib.js.map +1 -1
  166. package/dist/src/server/tmlanguage.d.ts +1 -1
  167. package/dist/src/server/tmlanguage.d.ts.map +1 -1
  168. package/dist/src/server/tmlanguage.js +147 -20
  169. package/dist/src/server/tmlanguage.js.map +1 -1
  170. package/dist/src/server/type-details.js +1 -2
  171. package/dist/src/server/type-details.js.map +1 -1
  172. package/dist/src/server/type-signature.js +15 -6
  173. package/dist/src/server/type-signature.js.map +1 -1
  174. package/dist/src/server/types.d.ts +1 -1
  175. package/dist/src/server/types.d.ts.map +1 -1
  176. package/dist/src/testing/expect.js +1 -1
  177. package/dist/src/testing/expect.js.map +1 -1
  178. package/dist/src/testing/rule-tester.d.ts.map +1 -1
  179. package/dist/src/testing/rule-tester.js +1 -2
  180. package/dist/src/testing/rule-tester.js.map +1 -1
  181. package/dist/src/testing/test-host.d.ts +1 -2
  182. package/dist/src/testing/test-host.d.ts.map +1 -1
  183. package/dist/src/testing/test-host.js +1 -8
  184. package/dist/src/testing/test-host.js.map +1 -1
  185. package/dist/src/testing/test-server-host.d.ts.map +1 -1
  186. package/dist/src/testing/test-server-host.js +2 -1
  187. package/dist/src/testing/test-server-host.js.map +1 -1
  188. package/dist/src/testing/test-utils.d.ts +1 -0
  189. package/dist/src/testing/test-utils.d.ts.map +1 -1
  190. package/dist/src/testing/test-utils.js +7 -0
  191. package/dist/src/testing/test-utils.js.map +1 -1
  192. package/dist/typespec.tmLanguage +408 -17
  193. package/lib/intrinsics.tsp +55 -5
  194. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"linter.js","sourceRoot":"","sources":["../../../src/core/linter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,cAAc,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAClG,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,EAAE,YAAY,EAAE,6BAA6B,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACpG,OAAO,EASL,QAAQ,GAGT,MAAM,YAAY,CAAC;AAOpB,MAAM,UAAU,YAAY,CAC1B,OAAgB,EAChB,WAAmE;IAEnE,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAE5C,MAAM,OAAO,GAAG,IAAI,GAAG,EAAmC,CAAC;IAC3D,MAAM,YAAY,GAAG,IAAI,GAAG,EAAmC,CAAC;IAChE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CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAE,IAAY,CAAC,MAAM,CAAC,CAAC;QAEzF,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,EAAE;YACb,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,OAAO,EAAE,UAAU;YACnB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,SAAS,EAAE,IAAI,CAAC,SAAS;SAC1B,CAAC;IACJ,CAAC;IAED,SAAS,gBAAgB,CAAqB,IAAuC;QACnF,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAC1C,IAAI,UAAU,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;YACnC,MAAM,OAAO,GAAG,kBAAkB,CAAC,OAAO,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;YAC/D,8CAA8C;YAC9C,4GAA4G;YAC5G,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;gBAC/B,mBAAmB,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;YACtC,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC"}
@@ -128,6 +128,7 @@ declare const diagnostics: {
128
128
  readonly statement: "Statement expected.";
129
129
  readonly property: "Property expected.";
130
130
  readonly enumMember: "Enum member expected.";
131
+ readonly typeofTarget: "Typeof expects a value literal or value reference.";
131
132
  };
132
133
  };
133
134
  readonly "trailing-token": {
@@ -379,6 +380,46 @@ declare const diagnostics: {
379
380
  readonly default: import("./types.js").CallableMessage<["type"]>;
380
381
  };
381
382
  };
383
+ readonly "spread-object": {
384
+ readonly severity: "error";
385
+ readonly messages: {
386
+ readonly default: "Cannot spread properties of non-object type.";
387
+ };
388
+ };
389
+ readonly "expect-value": {
390
+ readonly severity: "error";
391
+ readonly messages: {
392
+ readonly default: import("./types.js").CallableMessage<["name"]>;
393
+ readonly model: import("./types.js").CallableMessage<["name"]>;
394
+ readonly tuple: import("./types.js").CallableMessage<["name"]>;
395
+ readonly templateConstraint: import("./types.js").CallableMessage<["name"]>;
396
+ };
397
+ };
398
+ readonly "non-callable": {
399
+ readonly severity: "error";
400
+ readonly messages: {
401
+ readonly default: import("./types.js").CallableMessage<["type"]>;
402
+ };
403
+ };
404
+ readonly "named-init-required": {
405
+ readonly severity: "error";
406
+ readonly messages: {
407
+ readonly default: import("./types.js").CallableMessage<[]>;
408
+ };
409
+ };
410
+ readonly "invalid-primitive-init": {
411
+ readonly severity: "error";
412
+ readonly messages: {
413
+ readonly default: "Instantiating scalar deriving from 'string', 'numeric' or 'boolean' can only take a single argument.";
414
+ readonly invalidArg: import("./types.js").CallableMessage<["expected", "actual"]>;
415
+ };
416
+ };
417
+ readonly "ambiguous-scalar-type": {
418
+ readonly severity: "error";
419
+ readonly messages: {
420
+ readonly default: import("./types.js").CallableMessage<["value", "types", "example", "value"]>;
421
+ };
422
+ };
382
423
  readonly unassignable: {
383
424
  readonly severity: "error";
384
425
  readonly messages: {
@@ -392,6 +433,14 @@ declare const diagnostics: {
392
433
  readonly default: import("./types.js").CallableMessage<["propName", "targetType"]>;
393
434
  };
394
435
  };
436
+ readonly "value-in-type": {
437
+ readonly severity: "error";
438
+ readonly messages: {
439
+ readonly default: "A value cannot be used as a type.";
440
+ readonly referenceTemplate: "Template parameter can be passed values but is used as a type.";
441
+ readonly noTemplateConstraint: "Template parameter has no constraint but a value is passed. Add `extends valueof unknown` to accept any value.";
442
+ };
443
+ };
395
444
  readonly "no-prop": {
396
445
  readonly severity: "error";
397
446
  readonly messages: {
@@ -410,6 +459,12 @@ declare const diagnostics: {
410
459
  readonly default: import("./types.js").CallableMessage<["propertyName", "sourceType", "targetType"]>;
411
460
  };
412
461
  };
462
+ readonly "unexpected-property": {
463
+ readonly severity: "error";
464
+ readonly messages: {
465
+ readonly default: import("./types.js").CallableMessage<["propertyName", "type"]>;
466
+ };
467
+ };
413
468
  readonly "extends-interface": {
414
469
  readonly severity: "error";
415
470
  readonly messages: {
@@ -440,6 +495,12 @@ declare const diagnostics: {
440
495
  readonly default: import("./types.js").CallableMessage<["name"]>;
441
496
  };
442
497
  };
498
+ readonly "constructor-duplicate": {
499
+ readonly severity: "error";
500
+ readonly messages: {
501
+ readonly default: import("./types.js").CallableMessage<["name"]>;
502
+ };
503
+ };
443
504
  readonly "spread-enum": {
444
505
  readonly severity: "error";
445
506
  readonly messages: {
@@ -593,6 +654,12 @@ declare const diagnostics: {
593
654
  readonly default: "Projections are experimental - your code will need to change as this feature evolves.";
594
655
  };
595
656
  };
657
+ readonly "mixed-string-template": {
658
+ readonly severity: "error";
659
+ readonly messages: {
660
+ readonly default: "String template is interpolating values and types. It must be either all values to produce a string value or or all types for string template type.";
661
+ };
662
+ };
596
663
  readonly "non-literal-string-template": {
597
664
  readonly severity: "error";
598
665
  readonly messages: {
@@ -854,6 +921,12 @@ declare const diagnostics: {
854
921
  readonly default: import("./types.js").CallableMessage<["typeName"]>;
855
922
  };
856
923
  };
924
+ readonly "circular-const": {
925
+ readonly severity: "error";
926
+ readonly messages: {
927
+ readonly default: import("./types.js").CallableMessage<["name"]>;
928
+ };
929
+ };
857
930
  readonly "circular-prop": {
858
931
  readonly severity: "error";
859
932
  readonly messages: {
@@ -887,7 +960,7 @@ declare const diagnostics: {
887
960
  };
888
961
  };
889
962
  export type CompilerDiagnostics = TypeOfDiagnostics<typeof diagnostics>;
890
- export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-expected" | "binary-digit-expected" | "unterminated" | "creating-file" | "invalid-escape-sequence" | "no-new-line-start-triple-quote" | "no-new-line-end-triple-quote" | "triple-quote-indent" | "invalid-character" | "file-not-found" | "file-load" | "init-template-invalid-json" | "init-template-download-failed" | "multiple-blockless-namespace" | "blockless-namespace-first" | "import-first" | "token-expected" | "trailing-token" | "unknown-directive" | "augment-decorator-target" | "duplicate-decorator" | "decorator-conflict" | "reserved-identifier" | "invalid-directive-location" | "invalid-decorator-location" | "invalid-projection" | "default-required" | "invalid-template-argument-name" | "invalid-template-default" | "required-parameter-first" | "rest-parameter-last" | "rest-parameter-required" | "doc-invalid-identifier" | "using-invalid-ref" | "invalid-type-ref" | "invalid-template-args" | "intersect-non-model" | "intersect-invalid-index" | "incompatible-indexer" | "no-array-properties" | "intersect-duplicate-property" | "unknown-identifier" | "unknown-decorator" | "invalid-decorator" | "invalid-ref" | "duplicate-property" | "override-property-mismatch" | "extend-scalar" | "extend-model" | "is-model" | "is-operation" | "spread-model" | "unsupported-default" | "unassignable" | "property-required" | "no-prop" | "missing-index" | "missing-property" | "extends-interface" | "extends-interface-duplicate" | "interface-duplicate" | "union-duplicate" | "enum-member-duplicate" | "spread-enum" | "decorator-fail" | "rest-parameter-array" | "decorator-extern" | "function-extern" | "missing-implementation" | "overload-same-parent" | "shadow" | "invalid-deprecation-argument" | "duplicate-deprecation" | "config-invalid-argument" | "config-circular-variable" | "config-path-absolute" | "config-path-not-found" | "dynamic-import" | "invalid-import" | "invalid-main" | "import-not-found" | "library-invalid" | "incompatible-library" | "compiler-version-mismatch" | "duplicate-symbol" | "decorator-decl-target" | "projections-are-experimental" | "non-literal-string-template" | "ambiguous-symbol" | "duplicate-using" | "on-validate-fail" | "invalid-emitter" | "missing-import" | "invalid-rule-ref" | "unknown-rule" | "unknown-rule-set" | "rule-enabled-disabled" | "format-failed" | "decorator-wrong-target" | "invalid-argument" | "invalid-argument-count" | "known-values-invalid-enum" | "invalid-value" | "deprecated" | "no-optional-key" | "invalid-discriminated-union" | "invalid-discriminated-union-variant" | "missing-discriminator-property" | "invalid-discriminator-value" | "invalid-encode" | "invalid-mime-type" | "no-mime-type-suffix" | "encoded-name-conflict" | "service-decorator-duplicate" | "list-type-not-model" | "invalid-range" | "add-response" | "add-parameter" | "add-model-property" | "add-model-property-fail" | "add-response-type" | "circular-base-type" | "circular-constraint" | "circular-op-signature" | "circular-alias-type" | "circular-prop" | "conflict-marker" | "no-compatible-vs-installed" | "vs-extension-windows-only" | "vscode-in-path", M extends keyof {
963
+ export declare const createDiagnostic: <C extends "deprecated" | "digit-expected" | "hex-digit-expected" | "binary-digit-expected" | "unterminated" | "creating-file" | "invalid-escape-sequence" | "no-new-line-start-triple-quote" | "no-new-line-end-triple-quote" | "triple-quote-indent" | "invalid-character" | "file-not-found" | "file-load" | "init-template-invalid-json" | "init-template-download-failed" | "multiple-blockless-namespace" | "blockless-namespace-first" | "import-first" | "token-expected" | "trailing-token" | "unknown-directive" | "augment-decorator-target" | "duplicate-decorator" | "decorator-conflict" | "reserved-identifier" | "invalid-directive-location" | "invalid-decorator-location" | "invalid-projection" | "default-required" | "invalid-template-argument-name" | "invalid-template-default" | "required-parameter-first" | "rest-parameter-last" | "rest-parameter-required" | "doc-invalid-identifier" | "using-invalid-ref" | "invalid-type-ref" | "invalid-template-args" | "intersect-non-model" | "intersect-invalid-index" | "incompatible-indexer" | "no-array-properties" | "intersect-duplicate-property" | "unknown-identifier" | "unknown-decorator" | "invalid-decorator" | "invalid-ref" | "duplicate-property" | "override-property-mismatch" | "extend-scalar" | "extend-model" | "is-model" | "is-operation" | "spread-model" | "unsupported-default" | "spread-object" | "expect-value" | "non-callable" | "named-init-required" | "invalid-primitive-init" | "ambiguous-scalar-type" | "unassignable" | "property-required" | "value-in-type" | "no-prop" | "missing-index" | "missing-property" | "unexpected-property" | "extends-interface" | "extends-interface-duplicate" | "interface-duplicate" | "union-duplicate" | "enum-member-duplicate" | "constructor-duplicate" | "spread-enum" | "decorator-fail" | "rest-parameter-array" | "decorator-extern" | "function-extern" | "missing-implementation" | "overload-same-parent" | "shadow" | "invalid-deprecation-argument" | "duplicate-deprecation" | "config-invalid-argument" | "config-circular-variable" | "config-path-absolute" | "config-path-not-found" | "dynamic-import" | "invalid-import" | "invalid-main" | "import-not-found" | "library-invalid" | "incompatible-library" | "compiler-version-mismatch" | "duplicate-symbol" | "decorator-decl-target" | "projections-are-experimental" | "mixed-string-template" | "non-literal-string-template" | "ambiguous-symbol" | "duplicate-using" | "on-validate-fail" | "invalid-emitter" | "missing-import" | "invalid-rule-ref" | "unknown-rule" | "unknown-rule-set" | "rule-enabled-disabled" | "format-failed" | "decorator-wrong-target" | "invalid-argument" | "invalid-argument-count" | "known-values-invalid-enum" | "invalid-value" | "no-optional-key" | "invalid-discriminated-union" | "invalid-discriminated-union-variant" | "missing-discriminator-property" | "invalid-discriminator-value" | "invalid-encode" | "invalid-mime-type" | "no-mime-type-suffix" | "encoded-name-conflict" | "service-decorator-duplicate" | "list-type-not-model" | "invalid-range" | "add-response" | "add-parameter" | "add-model-property" | "add-model-property-fail" | "add-response-type" | "circular-base-type" | "circular-constraint" | "circular-op-signature" | "circular-alias-type" | "circular-const" | "circular-prop" | "conflict-marker" | "no-compatible-vs-installed" | "vs-extension-windows-only" | "vscode-in-path", M extends keyof {
891
964
  "digit-expected": {
892
965
  readonly default: "Digit expected.";
893
966
  };
@@ -951,6 +1024,7 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
951
1024
  readonly statement: "Statement expected.";
952
1025
  readonly property: "Property expected.";
953
1026
  readonly enumMember: "Enum member expected.";
1027
+ readonly typeofTarget: "Typeof expects a value literal or value reference.";
954
1028
  };
955
1029
  "trailing-token": {
956
1030
  readonly default: import("./types.js").CallableMessage<["token"]>;
@@ -1086,6 +1160,28 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
1086
1160
  "unsupported-default": {
1087
1161
  readonly default: import("./types.js").CallableMessage<["type"]>;
1088
1162
  };
1163
+ "spread-object": {
1164
+ readonly default: "Cannot spread properties of non-object type.";
1165
+ };
1166
+ "expect-value": {
1167
+ readonly default: import("./types.js").CallableMessage<["name"]>;
1168
+ readonly model: import("./types.js").CallableMessage<["name"]>;
1169
+ readonly tuple: import("./types.js").CallableMessage<["name"]>;
1170
+ readonly templateConstraint: import("./types.js").CallableMessage<["name"]>;
1171
+ };
1172
+ "non-callable": {
1173
+ readonly default: import("./types.js").CallableMessage<["type"]>;
1174
+ };
1175
+ "named-init-required": {
1176
+ readonly default: import("./types.js").CallableMessage<[]>;
1177
+ };
1178
+ "invalid-primitive-init": {
1179
+ readonly default: "Instantiating scalar deriving from 'string', 'numeric' or 'boolean' can only take a single argument.";
1180
+ readonly invalidArg: import("./types.js").CallableMessage<["expected", "actual"]>;
1181
+ };
1182
+ "ambiguous-scalar-type": {
1183
+ readonly default: import("./types.js").CallableMessage<["value", "types", "example", "value"]>;
1184
+ };
1089
1185
  unassignable: {
1090
1186
  readonly default: import("./types.js").CallableMessage<["value", "targetType"]>;
1091
1187
  readonly withDetails: import("./types.js").CallableMessage<["sourceType", "targetType", "details"]>;
@@ -1093,6 +1189,11 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
1093
1189
  "property-required": {
1094
1190
  readonly default: import("./types.js").CallableMessage<["propName", "targetType"]>;
1095
1191
  };
1192
+ "value-in-type": {
1193
+ readonly default: "A value cannot be used as a type.";
1194
+ readonly referenceTemplate: "Template parameter can be passed values but is used as a type.";
1195
+ readonly noTemplateConstraint: "Template parameter has no constraint but a value is passed. Add `extends valueof unknown` to accept any value.";
1196
+ };
1096
1197
  "no-prop": {
1097
1198
  readonly default: import("./types.js").CallableMessage<["propName"]>;
1098
1199
  };
@@ -1102,6 +1203,9 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
1102
1203
  "missing-property": {
1103
1204
  readonly default: import("./types.js").CallableMessage<["propertyName", "sourceType", "targetType"]>;
1104
1205
  };
1206
+ "unexpected-property": {
1207
+ readonly default: import("./types.js").CallableMessage<["propertyName", "type"]>;
1208
+ };
1105
1209
  "extends-interface": {
1106
1210
  readonly default: "Interfaces can only extend other interfaces";
1107
1211
  };
@@ -1117,6 +1221,9 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
1117
1221
  "enum-member-duplicate": {
1118
1222
  readonly default: import("./types.js").CallableMessage<["name"]>;
1119
1223
  };
1224
+ "constructor-duplicate": {
1225
+ readonly default: import("./types.js").CallableMessage<["name"]>;
1226
+ };
1120
1227
  "spread-enum": {
1121
1228
  readonly default: "Cannot spread members of non-enum type.";
1122
1229
  };
@@ -1192,6 +1299,9 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
1192
1299
  "projections-are-experimental": {
1193
1300
  readonly default: "Projections are experimental - your code will need to change as this feature evolves.";
1194
1301
  };
1302
+ "mixed-string-template": {
1303
+ readonly default: "String template is interpolating values and types. It must be either all values to produce a string value or or all types for string template type.";
1304
+ };
1195
1305
  "non-literal-string-template": {
1196
1306
  readonly default: "Value interpolated in this string template cannot be converted to a string. Only literal types can be automatically interpolated.";
1197
1307
  };
@@ -1318,6 +1428,9 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
1318
1428
  "circular-alias-type": {
1319
1429
  readonly default: import("./types.js").CallableMessage<["typeName"]>;
1320
1430
  };
1431
+ "circular-const": {
1432
+ readonly default: import("./types.js").CallableMessage<["name"]>;
1433
+ };
1321
1434
  "circular-prop": {
1322
1435
  readonly default: import("./types.js").CallableMessage<["propName"]>;
1323
1436
  };
@@ -1398,6 +1511,7 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
1398
1511
  readonly statement: "Statement expected.";
1399
1512
  readonly property: "Property expected.";
1400
1513
  readonly enumMember: "Enum member expected.";
1514
+ readonly typeofTarget: "Typeof expects a value literal or value reference.";
1401
1515
  };
1402
1516
  "trailing-token": {
1403
1517
  readonly default: import("./types.js").CallableMessage<["token"]>;
@@ -1533,6 +1647,28 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
1533
1647
  "unsupported-default": {
1534
1648
  readonly default: import("./types.js").CallableMessage<["type"]>;
1535
1649
  };
1650
+ "spread-object": {
1651
+ readonly default: "Cannot spread properties of non-object type.";
1652
+ };
1653
+ "expect-value": {
1654
+ readonly default: import("./types.js").CallableMessage<["name"]>;
1655
+ readonly model: import("./types.js").CallableMessage<["name"]>;
1656
+ readonly tuple: import("./types.js").CallableMessage<["name"]>;
1657
+ readonly templateConstraint: import("./types.js").CallableMessage<["name"]>;
1658
+ };
1659
+ "non-callable": {
1660
+ readonly default: import("./types.js").CallableMessage<["type"]>;
1661
+ };
1662
+ "named-init-required": {
1663
+ readonly default: import("./types.js").CallableMessage<[]>;
1664
+ };
1665
+ "invalid-primitive-init": {
1666
+ readonly default: "Instantiating scalar deriving from 'string', 'numeric' or 'boolean' can only take a single argument.";
1667
+ readonly invalidArg: import("./types.js").CallableMessage<["expected", "actual"]>;
1668
+ };
1669
+ "ambiguous-scalar-type": {
1670
+ readonly default: import("./types.js").CallableMessage<["value", "types", "example", "value"]>;
1671
+ };
1536
1672
  unassignable: {
1537
1673
  readonly default: import("./types.js").CallableMessage<["value", "targetType"]>;
1538
1674
  readonly withDetails: import("./types.js").CallableMessage<["sourceType", "targetType", "details"]>;
@@ -1540,6 +1676,11 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
1540
1676
  "property-required": {
1541
1677
  readonly default: import("./types.js").CallableMessage<["propName", "targetType"]>;
1542
1678
  };
1679
+ "value-in-type": {
1680
+ readonly default: "A value cannot be used as a type.";
1681
+ readonly referenceTemplate: "Template parameter can be passed values but is used as a type.";
1682
+ readonly noTemplateConstraint: "Template parameter has no constraint but a value is passed. Add `extends valueof unknown` to accept any value.";
1683
+ };
1543
1684
  "no-prop": {
1544
1685
  readonly default: import("./types.js").CallableMessage<["propName"]>;
1545
1686
  };
@@ -1549,6 +1690,9 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
1549
1690
  "missing-property": {
1550
1691
  readonly default: import("./types.js").CallableMessage<["propertyName", "sourceType", "targetType"]>;
1551
1692
  };
1693
+ "unexpected-property": {
1694
+ readonly default: import("./types.js").CallableMessage<["propertyName", "type"]>;
1695
+ };
1552
1696
  "extends-interface": {
1553
1697
  readonly default: "Interfaces can only extend other interfaces";
1554
1698
  };
@@ -1564,6 +1708,9 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
1564
1708
  "enum-member-duplicate": {
1565
1709
  readonly default: import("./types.js").CallableMessage<["name"]>;
1566
1710
  };
1711
+ "constructor-duplicate": {
1712
+ readonly default: import("./types.js").CallableMessage<["name"]>;
1713
+ };
1567
1714
  "spread-enum": {
1568
1715
  readonly default: "Cannot spread members of non-enum type.";
1569
1716
  };
@@ -1639,6 +1786,9 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
1639
1786
  "projections-are-experimental": {
1640
1787
  readonly default: "Projections are experimental - your code will need to change as this feature evolves.";
1641
1788
  };
1789
+ "mixed-string-template": {
1790
+ readonly default: "String template is interpolating values and types. It must be either all values to produce a string value or or all types for string template type.";
1791
+ };
1642
1792
  "non-literal-string-template": {
1643
1793
  readonly default: "Value interpolated in this string template cannot be converted to a string. Only literal types can be automatically interpolated.";
1644
1794
  };
@@ -1765,6 +1915,9 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
1765
1915
  "circular-alias-type": {
1766
1916
  readonly default: import("./types.js").CallableMessage<["typeName"]>;
1767
1917
  };
1918
+ "circular-const": {
1919
+ readonly default: import("./types.js").CallableMessage<["name"]>;
1920
+ };
1768
1921
  "circular-prop": {
1769
1922
  readonly default: import("./types.js").CallableMessage<["propName"]>;
1770
1923
  };
@@ -1781,7 +1934,7 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
1781
1934
  readonly default: "Couldn't find VS Code 'code' command in PATH. Make sure you have the VS Code executable added to the system PATH.";
1782
1935
  readonly osx: "Couldn't find VS Code 'code' command in PATH. Make sure you have the VS Code executable added to the system PATH.\nSee instruction for Mac OS here https://code.visualstudio.com/docs/setup/mac";
1783
1936
  };
1784
- }, C, M>) => import("./types.js").Diagnostic, reportDiagnostic: <C extends "digit-expected" | "hex-digit-expected" | "binary-digit-expected" | "unterminated" | "creating-file" | "invalid-escape-sequence" | "no-new-line-start-triple-quote" | "no-new-line-end-triple-quote" | "triple-quote-indent" | "invalid-character" | "file-not-found" | "file-load" | "init-template-invalid-json" | "init-template-download-failed" | "multiple-blockless-namespace" | "blockless-namespace-first" | "import-first" | "token-expected" | "trailing-token" | "unknown-directive" | "augment-decorator-target" | "duplicate-decorator" | "decorator-conflict" | "reserved-identifier" | "invalid-directive-location" | "invalid-decorator-location" | "invalid-projection" | "default-required" | "invalid-template-argument-name" | "invalid-template-default" | "required-parameter-first" | "rest-parameter-last" | "rest-parameter-required" | "doc-invalid-identifier" | "using-invalid-ref" | "invalid-type-ref" | "invalid-template-args" | "intersect-non-model" | "intersect-invalid-index" | "incompatible-indexer" | "no-array-properties" | "intersect-duplicate-property" | "unknown-identifier" | "unknown-decorator" | "invalid-decorator" | "invalid-ref" | "duplicate-property" | "override-property-mismatch" | "extend-scalar" | "extend-model" | "is-model" | "is-operation" | "spread-model" | "unsupported-default" | "unassignable" | "property-required" | "no-prop" | "missing-index" | "missing-property" | "extends-interface" | "extends-interface-duplicate" | "interface-duplicate" | "union-duplicate" | "enum-member-duplicate" | "spread-enum" | "decorator-fail" | "rest-parameter-array" | "decorator-extern" | "function-extern" | "missing-implementation" | "overload-same-parent" | "shadow" | "invalid-deprecation-argument" | "duplicate-deprecation" | "config-invalid-argument" | "config-circular-variable" | "config-path-absolute" | "config-path-not-found" | "dynamic-import" | "invalid-import" | "invalid-main" | "import-not-found" | "library-invalid" | "incompatible-library" | "compiler-version-mismatch" | "duplicate-symbol" | "decorator-decl-target" | "projections-are-experimental" | "non-literal-string-template" | "ambiguous-symbol" | "duplicate-using" | "on-validate-fail" | "invalid-emitter" | "missing-import" | "invalid-rule-ref" | "unknown-rule" | "unknown-rule-set" | "rule-enabled-disabled" | "format-failed" | "decorator-wrong-target" | "invalid-argument" | "invalid-argument-count" | "known-values-invalid-enum" | "invalid-value" | "deprecated" | "no-optional-key" | "invalid-discriminated-union" | "invalid-discriminated-union-variant" | "missing-discriminator-property" | "invalid-discriminator-value" | "invalid-encode" | "invalid-mime-type" | "no-mime-type-suffix" | "encoded-name-conflict" | "service-decorator-duplicate" | "list-type-not-model" | "invalid-range" | "add-response" | "add-parameter" | "add-model-property" | "add-model-property-fail" | "add-response-type" | "circular-base-type" | "circular-constraint" | "circular-op-signature" | "circular-alias-type" | "circular-prop" | "conflict-marker" | "no-compatible-vs-installed" | "vs-extension-windows-only" | "vscode-in-path", M extends keyof {
1937
+ }, C, M>) => import("./types.js").Diagnostic, reportDiagnostic: <C extends "deprecated" | "digit-expected" | "hex-digit-expected" | "binary-digit-expected" | "unterminated" | "creating-file" | "invalid-escape-sequence" | "no-new-line-start-triple-quote" | "no-new-line-end-triple-quote" | "triple-quote-indent" | "invalid-character" | "file-not-found" | "file-load" | "init-template-invalid-json" | "init-template-download-failed" | "multiple-blockless-namespace" | "blockless-namespace-first" | "import-first" | "token-expected" | "trailing-token" | "unknown-directive" | "augment-decorator-target" | "duplicate-decorator" | "decorator-conflict" | "reserved-identifier" | "invalid-directive-location" | "invalid-decorator-location" | "invalid-projection" | "default-required" | "invalid-template-argument-name" | "invalid-template-default" | "required-parameter-first" | "rest-parameter-last" | "rest-parameter-required" | "doc-invalid-identifier" | "using-invalid-ref" | "invalid-type-ref" | "invalid-template-args" | "intersect-non-model" | "intersect-invalid-index" | "incompatible-indexer" | "no-array-properties" | "intersect-duplicate-property" | "unknown-identifier" | "unknown-decorator" | "invalid-decorator" | "invalid-ref" | "duplicate-property" | "override-property-mismatch" | "extend-scalar" | "extend-model" | "is-model" | "is-operation" | "spread-model" | "unsupported-default" | "spread-object" | "expect-value" | "non-callable" | "named-init-required" | "invalid-primitive-init" | "ambiguous-scalar-type" | "unassignable" | "property-required" | "value-in-type" | "no-prop" | "missing-index" | "missing-property" | "unexpected-property" | "extends-interface" | "extends-interface-duplicate" | "interface-duplicate" | "union-duplicate" | "enum-member-duplicate" | "constructor-duplicate" | "spread-enum" | "decorator-fail" | "rest-parameter-array" | "decorator-extern" | "function-extern" | "missing-implementation" | "overload-same-parent" | "shadow" | "invalid-deprecation-argument" | "duplicate-deprecation" | "config-invalid-argument" | "config-circular-variable" | "config-path-absolute" | "config-path-not-found" | "dynamic-import" | "invalid-import" | "invalid-main" | "import-not-found" | "library-invalid" | "incompatible-library" | "compiler-version-mismatch" | "duplicate-symbol" | "decorator-decl-target" | "projections-are-experimental" | "mixed-string-template" | "non-literal-string-template" | "ambiguous-symbol" | "duplicate-using" | "on-validate-fail" | "invalid-emitter" | "missing-import" | "invalid-rule-ref" | "unknown-rule" | "unknown-rule-set" | "rule-enabled-disabled" | "format-failed" | "decorator-wrong-target" | "invalid-argument" | "invalid-argument-count" | "known-values-invalid-enum" | "invalid-value" | "no-optional-key" | "invalid-discriminated-union" | "invalid-discriminated-union-variant" | "missing-discriminator-property" | "invalid-discriminator-value" | "invalid-encode" | "invalid-mime-type" | "no-mime-type-suffix" | "encoded-name-conflict" | "service-decorator-duplicate" | "list-type-not-model" | "invalid-range" | "add-response" | "add-parameter" | "add-model-property" | "add-model-property-fail" | "add-response-type" | "circular-base-type" | "circular-constraint" | "circular-op-signature" | "circular-alias-type" | "circular-const" | "circular-prop" | "conflict-marker" | "no-compatible-vs-installed" | "vs-extension-windows-only" | "vscode-in-path", M extends keyof {
1785
1938
  "digit-expected": {
1786
1939
  readonly default: "Digit expected.";
1787
1940
  };
@@ -1845,6 +1998,7 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
1845
1998
  readonly statement: "Statement expected.";
1846
1999
  readonly property: "Property expected.";
1847
2000
  readonly enumMember: "Enum member expected.";
2001
+ readonly typeofTarget: "Typeof expects a value literal or value reference.";
1848
2002
  };
1849
2003
  "trailing-token": {
1850
2004
  readonly default: import("./types.js").CallableMessage<["token"]>;
@@ -1980,6 +2134,28 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
1980
2134
  "unsupported-default": {
1981
2135
  readonly default: import("./types.js").CallableMessage<["type"]>;
1982
2136
  };
2137
+ "spread-object": {
2138
+ readonly default: "Cannot spread properties of non-object type.";
2139
+ };
2140
+ "expect-value": {
2141
+ readonly default: import("./types.js").CallableMessage<["name"]>;
2142
+ readonly model: import("./types.js").CallableMessage<["name"]>;
2143
+ readonly tuple: import("./types.js").CallableMessage<["name"]>;
2144
+ readonly templateConstraint: import("./types.js").CallableMessage<["name"]>;
2145
+ };
2146
+ "non-callable": {
2147
+ readonly default: import("./types.js").CallableMessage<["type"]>;
2148
+ };
2149
+ "named-init-required": {
2150
+ readonly default: import("./types.js").CallableMessage<[]>;
2151
+ };
2152
+ "invalid-primitive-init": {
2153
+ readonly default: "Instantiating scalar deriving from 'string', 'numeric' or 'boolean' can only take a single argument.";
2154
+ readonly invalidArg: import("./types.js").CallableMessage<["expected", "actual"]>;
2155
+ };
2156
+ "ambiguous-scalar-type": {
2157
+ readonly default: import("./types.js").CallableMessage<["value", "types", "example", "value"]>;
2158
+ };
1983
2159
  unassignable: {
1984
2160
  readonly default: import("./types.js").CallableMessage<["value", "targetType"]>;
1985
2161
  readonly withDetails: import("./types.js").CallableMessage<["sourceType", "targetType", "details"]>;
@@ -1987,6 +2163,11 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
1987
2163
  "property-required": {
1988
2164
  readonly default: import("./types.js").CallableMessage<["propName", "targetType"]>;
1989
2165
  };
2166
+ "value-in-type": {
2167
+ readonly default: "A value cannot be used as a type.";
2168
+ readonly referenceTemplate: "Template parameter can be passed values but is used as a type.";
2169
+ readonly noTemplateConstraint: "Template parameter has no constraint but a value is passed. Add `extends valueof unknown` to accept any value.";
2170
+ };
1990
2171
  "no-prop": {
1991
2172
  readonly default: import("./types.js").CallableMessage<["propName"]>;
1992
2173
  };
@@ -1996,6 +2177,9 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
1996
2177
  "missing-property": {
1997
2178
  readonly default: import("./types.js").CallableMessage<["propertyName", "sourceType", "targetType"]>;
1998
2179
  };
2180
+ "unexpected-property": {
2181
+ readonly default: import("./types.js").CallableMessage<["propertyName", "type"]>;
2182
+ };
1999
2183
  "extends-interface": {
2000
2184
  readonly default: "Interfaces can only extend other interfaces";
2001
2185
  };
@@ -2011,6 +2195,9 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
2011
2195
  "enum-member-duplicate": {
2012
2196
  readonly default: import("./types.js").CallableMessage<["name"]>;
2013
2197
  };
2198
+ "constructor-duplicate": {
2199
+ readonly default: import("./types.js").CallableMessage<["name"]>;
2200
+ };
2014
2201
  "spread-enum": {
2015
2202
  readonly default: "Cannot spread members of non-enum type.";
2016
2203
  };
@@ -2086,6 +2273,9 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
2086
2273
  "projections-are-experimental": {
2087
2274
  readonly default: "Projections are experimental - your code will need to change as this feature evolves.";
2088
2275
  };
2276
+ "mixed-string-template": {
2277
+ readonly default: "String template is interpolating values and types. It must be either all values to produce a string value or or all types for string template type.";
2278
+ };
2089
2279
  "non-literal-string-template": {
2090
2280
  readonly default: "Value interpolated in this string template cannot be converted to a string. Only literal types can be automatically interpolated.";
2091
2281
  };
@@ -2212,6 +2402,9 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
2212
2402
  "circular-alias-type": {
2213
2403
  readonly default: import("./types.js").CallableMessage<["typeName"]>;
2214
2404
  };
2405
+ "circular-const": {
2406
+ readonly default: import("./types.js").CallableMessage<["name"]>;
2407
+ };
2215
2408
  "circular-prop": {
2216
2409
  readonly default: import("./types.js").CallableMessage<["propName"]>;
2217
2410
  };
@@ -2292,6 +2485,7 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
2292
2485
  readonly statement: "Statement expected.";
2293
2486
  readonly property: "Property expected.";
2294
2487
  readonly enumMember: "Enum member expected.";
2488
+ readonly typeofTarget: "Typeof expects a value literal or value reference.";
2295
2489
  };
2296
2490
  "trailing-token": {
2297
2491
  readonly default: import("./types.js").CallableMessage<["token"]>;
@@ -2427,6 +2621,28 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
2427
2621
  "unsupported-default": {
2428
2622
  readonly default: import("./types.js").CallableMessage<["type"]>;
2429
2623
  };
2624
+ "spread-object": {
2625
+ readonly default: "Cannot spread properties of non-object type.";
2626
+ };
2627
+ "expect-value": {
2628
+ readonly default: import("./types.js").CallableMessage<["name"]>;
2629
+ readonly model: import("./types.js").CallableMessage<["name"]>;
2630
+ readonly tuple: import("./types.js").CallableMessage<["name"]>;
2631
+ readonly templateConstraint: import("./types.js").CallableMessage<["name"]>;
2632
+ };
2633
+ "non-callable": {
2634
+ readonly default: import("./types.js").CallableMessage<["type"]>;
2635
+ };
2636
+ "named-init-required": {
2637
+ readonly default: import("./types.js").CallableMessage<[]>;
2638
+ };
2639
+ "invalid-primitive-init": {
2640
+ readonly default: "Instantiating scalar deriving from 'string', 'numeric' or 'boolean' can only take a single argument.";
2641
+ readonly invalidArg: import("./types.js").CallableMessage<["expected", "actual"]>;
2642
+ };
2643
+ "ambiguous-scalar-type": {
2644
+ readonly default: import("./types.js").CallableMessage<["value", "types", "example", "value"]>;
2645
+ };
2430
2646
  unassignable: {
2431
2647
  readonly default: import("./types.js").CallableMessage<["value", "targetType"]>;
2432
2648
  readonly withDetails: import("./types.js").CallableMessage<["sourceType", "targetType", "details"]>;
@@ -2434,6 +2650,11 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
2434
2650
  "property-required": {
2435
2651
  readonly default: import("./types.js").CallableMessage<["propName", "targetType"]>;
2436
2652
  };
2653
+ "value-in-type": {
2654
+ readonly default: "A value cannot be used as a type.";
2655
+ readonly referenceTemplate: "Template parameter can be passed values but is used as a type.";
2656
+ readonly noTemplateConstraint: "Template parameter has no constraint but a value is passed. Add `extends valueof unknown` to accept any value.";
2657
+ };
2437
2658
  "no-prop": {
2438
2659
  readonly default: import("./types.js").CallableMessage<["propName"]>;
2439
2660
  };
@@ -2443,6 +2664,9 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
2443
2664
  "missing-property": {
2444
2665
  readonly default: import("./types.js").CallableMessage<["propertyName", "sourceType", "targetType"]>;
2445
2666
  };
2667
+ "unexpected-property": {
2668
+ readonly default: import("./types.js").CallableMessage<["propertyName", "type"]>;
2669
+ };
2446
2670
  "extends-interface": {
2447
2671
  readonly default: "Interfaces can only extend other interfaces";
2448
2672
  };
@@ -2458,6 +2682,9 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
2458
2682
  "enum-member-duplicate": {
2459
2683
  readonly default: import("./types.js").CallableMessage<["name"]>;
2460
2684
  };
2685
+ "constructor-duplicate": {
2686
+ readonly default: import("./types.js").CallableMessage<["name"]>;
2687
+ };
2461
2688
  "spread-enum": {
2462
2689
  readonly default: "Cannot spread members of non-enum type.";
2463
2690
  };
@@ -2533,6 +2760,9 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
2533
2760
  "projections-are-experimental": {
2534
2761
  readonly default: "Projections are experimental - your code will need to change as this feature evolves.";
2535
2762
  };
2763
+ "mixed-string-template": {
2764
+ readonly default: "String template is interpolating values and types. It must be either all values to produce a string value or or all types for string template type.";
2765
+ };
2536
2766
  "non-literal-string-template": {
2537
2767
  readonly default: "Value interpolated in this string template cannot be converted to a string. Only literal types can be automatically interpolated.";
2538
2768
  };
@@ -2659,6 +2889,9 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
2659
2889
  "circular-alias-type": {
2660
2890
  readonly default: import("./types.js").CallableMessage<["typeName"]>;
2661
2891
  };
2892
+ "circular-const": {
2893
+ readonly default: import("./types.js").CallableMessage<["name"]>;
2894
+ };
2662
2895
  "circular-prop": {
2663
2896
  readonly default: import("./types.js").CallableMessage<["propName"]>;
2664
2897
  };
@@ -1 +1 @@
1
- {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/core/messages.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,QAAA,MAAM,WAAW;IACf;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAuEH;;OAEG;;;;;;;;;;;;;IAcH;;OAEG;;;;;;;;;;;;;IAcH;;OAEG;;;;;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