@typespec/events 0.69.0 → 0.70.0-dev.1
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/src/decorators.d.ts +1 -1
- package/dist/src/lib.d.ts +2 -2
- package/package.json +8 -7
package/dist/src/decorators.d.ts
CHANGED
|
@@ -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:
|
|
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>, "
|
|
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<"
|
|
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.
|
|
3
|
+
"version": "0.70.0-dev.1",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec library providing events bindings",
|
|
6
6
|
"homepage": "https://typespec.io",
|
|
@@ -43,16 +43,17 @@
|
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@types/node": "~22.13.11",
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
46
|
+
"@typespec/compiler": "^1.0.0-rc.1",
|
|
47
|
+
"@typespec/library-linter": "^0.69.0 || >=0.70.0-dev <0.70.0",
|
|
48
|
+
"@typespec/tspd": "^0.69.0 || >=0.70.0-dev <0.70.0",
|
|
49
|
+
"@vitest/coverage-v8": "^3.1.2",
|
|
50
|
+
"@vitest/ui": "^3.1.2",
|
|
48
51
|
"c8": "^10.1.3",
|
|
49
52
|
"rimraf": "~6.0.1",
|
|
50
53
|
"typescript": "~5.8.2",
|
|
51
|
-
"vitest": "^3.
|
|
52
|
-
"@typespec/compiler": "^1.0.0-rc.1",
|
|
53
|
-
"@typespec/tspd": "^0.69.0",
|
|
54
|
-
"@typespec/library-linter": "^0.69.0"
|
|
54
|
+
"vitest": "^3.1.2"
|
|
55
55
|
},
|
|
56
|
+
"dependencies": {},
|
|
56
57
|
"scripts": {
|
|
57
58
|
"clean": "rimraf ./dist ./temp",
|
|
58
59
|
"build": "pnpm gen-extern-signature && tsc -p . && pnpm lint-typespec-library",
|