TypeScript: Preserve type refinements in closures created past last assignment | Heykuki News