@typespec/events 0.70.0-dev.0 → 0.70.0-dev.2

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.
@@ -1,5 +1,8 @@
1
- /** An error here would mean that the decorator is not exported or doesn't have the right name. */
1
+ // An error in the imports would mean that the decorator is not exported or
2
+ // doesn't have the right name.
2
3
  import { $decorators } from "@typespec/events";
3
- /** An error here would mean that the exported decorator is not using the same signature. Make sure to have export const $decName: DecNameDecorator = (...) => ... */
4
+ /**
5
+ * An error here would mean that the exported decorator is not using the same signature. Make sure to have export const $decName: DecNameDecorator = (...) => ...
6
+ */
4
7
  const _ = $decorators["TypeSpec.Events"];
5
8
  //# sourceMappingURL=TypeSpec.Events.ts-test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TypeSpec.Events.ts-test.js","sourceRoot":"","sources":["../../generated-defs/TypeSpec.Events.ts-test.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,qKAAqK;AACrK,MAAM,CAAC,GAA6B,WAAW,CAAC,iBAAiB,CAAC,CAAC"}
1
+ {"version":3,"file":"TypeSpec.Events.ts-test.js","sourceRoot":"","sources":["../../generated-defs/TypeSpec.Events.ts-test.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,+BAA+B;AAE/B,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAG/C;;GAEG;AACH,MAAM,CAAC,GAA6B,WAAW,CAAC,iBAAiB,CAAC,CAAC"}
@@ -3,7 +3,7 @@ import type { ContentTypeDecorator, DataDecorator, EventsDecorator } from "../ge
3
3
  declare const isEvents: (program: import("@typespec/compiler").Program, type: Union) => boolean;
4
4
  export declare const $eventsDecorator: EventsDecorator;
5
5
  export { isEvents };
6
- declare const getContentType: (program: import("@typespec/compiler").Program, type: ModelProperty | UnionVariant) => string | undefined;
6
+ declare const getContentType: (program: import("@typespec/compiler").Program, type: UnionVariant | ModelProperty) => string | undefined;
7
7
  export declare const $contentTypeDecorator: ContentTypeDecorator;
8
8
  export { getContentType };
9
9
  declare const isEventData: (program: import("@typespec/compiler").Program, type: ModelProperty) => boolean;
package/dist/src/lib.d.ts CHANGED
@@ -6,7 +6,7 @@ export declare const $lib: import("@typespec/compiler").TypeSpecLibrary<{
6
6
  readonly default: import("@typespec/compiler").CallableMessage<["dataPath", "currentPath"]>;
7
7
  readonly payloadInIndexedModel: import("@typespec/compiler").CallableMessage<["dataPath"]>;
8
8
  };
9
- }, Record<string, any>, "data" | "events" | "contentType">;
9
+ }, Record<string, any>, "events" | "contentType" | "data">;
10
10
  export declare const reportDiagnostic: <C extends "invalid-content-type-target" | "multiple-event-payloads", M extends keyof {
11
11
  "invalid-content-type-target": {
12
12
  readonly default: "@contentType can only be specified on the top-level event envelope, or the event payload marked with @data";
@@ -39,5 +39,5 @@ export declare const reportDiagnostic: <C extends "invalid-content-type-target"
39
39
  readonly default: import("@typespec/compiler").CallableMessage<["dataPath", "currentPath"]>;
40
40
  readonly payloadInIndexedModel: import("@typespec/compiler").CallableMessage<["dataPath"]>;
41
41
  };
42
- }, C, M>) => import("@typespec/compiler").Diagnostic, EventsStateKeys: Record<"data" | "events" | "contentType", symbol>;
42
+ }, C, M>) => import("@typespec/compiler").Diagnostic, EventsStateKeys: Record<"events" | "contentType" | "data", symbol>;
43
43
  //# sourceMappingURL=lib.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typespec/events",
3
- "version": "0.70.0-dev.0",
3
+ "version": "0.70.0-dev.2",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec library providing events bindings",
6
6
  "homepage": "https://typespec.io",
@@ -46,12 +46,12 @@
46
46
  "@typespec/compiler": "^1.0.0-rc.1",
47
47
  "@typespec/library-linter": "^0.69.0 || >=0.70.0-dev <0.70.0",
48
48
  "@typespec/tspd": "^0.69.0 || >=0.70.0-dev <0.70.0",
49
- "@vitest/coverage-v8": "^3.0.9",
50
- "@vitest/ui": "^3.0.9",
49
+ "@vitest/coverage-v8": "^3.1.2",
50
+ "@vitest/ui": "^3.1.2",
51
51
  "c8": "^10.1.3",
52
52
  "rimraf": "~6.0.1",
53
53
  "typescript": "~5.8.2",
54
- "vitest": "^3.0.9"
54
+ "vitest": "^3.1.2"
55
55
  },
56
56
  "dependencies": {},
57
57
  "scripts": {