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
A similar feature already exists in TypeScript: Generic Parameter Defaults in TypeScript β Marius Schulz.