test(session-projection): type the async generator legacy yield

This commit is contained in:
imccyu committed 2026-10-20 01:28:06 +08:00
1 parent 499c2e347f
commit 806ee572b2
1 file changed
+2 -1
@@ -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<void>
})
},
})