From 806ee572b27f170f60bfacbf56575fd274f4bd01 Mon Sep 17 00:00:00 2001 From: imccyu <276526105+imccyu@users.noreply.github.com> Date: Tue, 20 Oct 2026 01:28:06 +0800 Subject: [PATCH] test(session-projection): type the async generator legacy yield --- .../session/session-projection/tests/compatibility.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/session/session-projection/tests/compatibility.spec.ts b/packages/session/session-projection/tests/compatibility.spec.ts index 097fb8e7f8..99beaeb74c 100644 --- a/packages/session/session-projection/tests/compatibility.spec.ts +++ b/packages/session/session-projection/tests/compatibility.spec.ts @@ -205,7 +205,8 @@ describe('projection registration compatibility', () => { inject: ['sessionProjections'], apply(inner) { disposeEffect = inner.effect(async function* () { - yield legacyRegistration(inner.sessionProjections.register(definition)) + // Compiled legacy callers see a disposer type; the async yield still assimilates its runtime then(). + yield legacyRegistration(inner.sessionProjections.register(definition)) as () => Promise }) }, })