Skip to content

[V] $lib

const $lib: TypeSpecLibrary<{
"sse-stream-union-not-events": {
default: "SSEStream type parameter must be a union decorated with '@TypeSpec.Events.events'.";
};
"terminal-event-not-in-events": {
default: "A field marked as '@terminalEvent' must be a member of a type decorated with '@TypeSpec.Events.events'.";
};
}, Record<string, any>, "terminalEvent">;

Defines the server-sent events library’s identity, diagnostics, and terminal-event state key for the TypeSpec compiler.