website refactor

This commit is contained in:
2026-01-17 18:28:10 +01:00
parent 6d57f8b1ce
commit 64d9e7fd16
44 changed files with 1729 additions and 415 deletions

View File

@@ -1,15 +1,15 @@
export class MockAutomationLifecycleEmitter {
private callbacks: Set<(event: any) => Promise<void> | void> = new Set()
private callbacks: Set<(event: unknown) => Promise<void> | void> = new Set()
onLifecycle(cb: (event: any) => Promise<void> | void): void {
onLifecycle(cb: (event: unknown) => Promise<void> | void): void {
this.callbacks.add(cb)
}
offLifecycle(cb: (event: any) => Promise<void> | void): void {
offLifecycle(cb: (event: unknown) => Promise<void> | void): void {
this.callbacks.delete(cb)
}
async emit(event: any): Promise<void> {
async emit(event: unknown): Promise<void> {
for (const cb of Array.from(this.callbacks)) {
try {
await cb(event)