Using Generic as non-nullable property

Maybe it would be possible if they implement default generic parameters: Default Types for Generics. For now it’s the best I could think of :slight_smile:

A similar feature already exists in TypeScript: Generic Parameter Defaults in TypeScript β€” Marius Schulz.