Skip to content

Commit be0ae7c

Browse files
raman325claude
andcommitted
refactor: use satisfies OutgoingEvent instead of as const
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4f4c787 commit be0ae7c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/lib/forward.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {
1919
dumpNode,
2020
} from "./state.js";
2121
import { ClientsController } from "./server.js";
22+
import { OutgoingEvent } from "./outgoing_message.js";
2223
import { NodeNotFoundError } from "./error.js";
2324

2425
export class EventForwarder {
@@ -429,11 +430,11 @@ export class EventForwarder {
429430
}
430431
}
431432
return {
432-
source: "node" as const,
433+
source: "node",
433434
event: "metadata updated",
434435
nodeId: changedNode.nodeId,
435436
args,
436-
};
437+
} satisfies OutgoingEvent;
437438
});
438439
},
439440
);

0 commit comments

Comments
 (0)