Dart, Kotlin and Swift have a lazy initialization keyword that lets you avoid the usage of Optional type mainly for maintainability reason.
// Using null safety:
class Coffee {
late String _temperature;
void heat() { _temperature = 'hot'; }
void chill() { _temperature = 'iced'; }
String serve() => _temperature + ' coffee';
}
What does TypeScript has as equivalent ?