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.
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.