Skip to content

[V] $lib

const $lib: TypeSpecLibrary<{
"invalid-content-type-target": {
default: "@contentType can only be specified on the top-level event envelope, or the event payload marked with @data";
};
"multiple-event-payloads": {
default: CallableMessage<["dataPath", "currentPath"]>;
payloadInIndexedModel: CallableMessage<["dataPath"]>;
};
}, Record<string, any>, "events" | "contentType" | "data">;

Defines the events library’s identity, diagnostics, and decorator state keys for the TypeSpec compiler.