Complete Commonlib rc.6 integration and setup workflows

This commit is contained in:
vorotamoroz
2026-07-21 15:00:28 +00:00
parent e005f9eb13
commit 1ef8c88139
150 changed files with 31041 additions and 260 deletions
+5 -2
View File
@@ -1,4 +1,4 @@
import type { ServiceContextContract } from "@vrtmrz/livesync-commonlib/context";
import type { CommonlibMessageKey, ServiceContextContract } from "@vrtmrz/livesync-commonlib/context";
import type { ServiceHub } from "@vrtmrz/livesync-commonlib/compat/services/ServiceHub";
export const SERVICE_CONTEXT_MEMBERS = [
@@ -43,7 +43,10 @@ export type ServiceCompositionResult = {
* The caller chooses the translation key because translated text is
* host-configured. Event delivery itself is shared behaviour.
*/
export function observeServiceContext(context: ServiceContextContract, translationKey: string): ServiceContextResult {
export function observeServiceContext(
context: ServiceContextContract,
translationKey: CommonlibMessageKey
): ServiceContextResult {
const receivedEvents: string[] = [];
const unsubscribe = context.events.onEvent("hello", (value) => receivedEvents.push(value));
try {