Resolve type safety issues in nested generic TypeScript interfaces by correctly passing outer type arguments to inner generics.