chore(companion): align platform waitForAnyEvent event-name typing
This commit is contained in:
@@ -738,6 +738,17 @@
|
|||||||
],
|
],
|
||||||
"test_status": "pnpm test:run src/companion/heartbeatLoop.test.ts src/companion/platformClients.test.ts src/companion/runtimeClient.test.ts src/companion/platformClients.integration.test.ts + pnpm typecheck passing"
|
"test_status": "pnpm test:run src/companion/heartbeatLoop.test.ts src/companion/platformClients.test.ts src/companion/runtimeClient.test.ts src/companion/platformClients.integration.test.ts + pnpm typecheck passing"
|
||||||
},
|
},
|
||||||
|
"companion-platform-wait-for-any-event-typed-names": {
|
||||||
|
"status": "completed",
|
||||||
|
"date": "2026-02-17",
|
||||||
|
"updated": "2026-02-17",
|
||||||
|
"summary": "Aligned platform `waitForAnyEvent()` signatures with runtime typing so event-name arrays accept typed companion event names (`CompanionEventName`) in addition to arbitrary strings.",
|
||||||
|
"files_modified": [
|
||||||
|
"src/companion/platformClients.ts",
|
||||||
|
"docs/plans/state.json"
|
||||||
|
],
|
||||||
|
"test_status": "pnpm test:run src/companion/platformClients.test.ts src/companion/runtimeClient.test.ts src/companion/heartbeatLoop.test.ts src/companion/platformClients.integration.test.ts + pnpm typecheck passing"
|
||||||
|
},
|
||||||
"browser-tools-activation-clarity": {
|
"browser-tools-activation-clarity": {
|
||||||
"status": "completed",
|
"status": "completed",
|
||||||
"date": "2026-02-17",
|
"date": "2026-02-17",
|
||||||
|
|||||||
@@ -276,7 +276,7 @@ export class MacOSCompanionClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
waitForAnyEvent<TData = unknown>(
|
waitForAnyEvent<TData = unknown>(
|
||||||
eventNames: readonly string[],
|
eventNames: readonly (CompanionEventName | string)[],
|
||||||
options?: {
|
options?: {
|
||||||
timeoutMs?: number;
|
timeoutMs?: number;
|
||||||
predicate?: (event: string, data: TData) => boolean;
|
predicate?: (event: string, data: TData) => boolean;
|
||||||
@@ -518,7 +518,7 @@ export class IOSCompanionClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
waitForAnyEvent<TData = unknown>(
|
waitForAnyEvent<TData = unknown>(
|
||||||
eventNames: readonly string[],
|
eventNames: readonly (CompanionEventName | string)[],
|
||||||
options?: {
|
options?: {
|
||||||
timeoutMs?: number;
|
timeoutMs?: number;
|
||||||
predicate?: (event: string, data: TData) => boolean;
|
predicate?: (event: string, data: TData) => boolean;
|
||||||
@@ -758,7 +758,7 @@ export class AndroidCompanionClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
waitForAnyEvent<TData = unknown>(
|
waitForAnyEvent<TData = unknown>(
|
||||||
eventNames: readonly string[],
|
eventNames: readonly (CompanionEventName | string)[],
|
||||||
options?: {
|
options?: {
|
||||||
timeoutMs?: number;
|
timeoutMs?: number;
|
||||||
predicate?: (event: string, data: TData) => boolean;
|
predicate?: (event: string, data: TData) => boolean;
|
||||||
|
|||||||
Reference in New Issue
Block a user