Reference

withCleanupScope

Cleanup scope helpers used by reactive DOM and tests.

Signature

function withCleanupScope<T>(owner: (dispose: (): void): void, run: (): T): T