My background comes from Objective-C where you can specify types that have both classes and interfaces in them. I can't seem to find any documentation that shows this in TypeScript, but it must exist, right?
Here's an example:
class Vehicle {}
class Car extends Vehicle {}
class Truck extends Vehicle {}
interface Electric{}
// These next lines are WRONG!
ChargeMyCar(car: Car<Electric>) { ... }
ChargeMyTruck(truck: Truck<Electric>) { ... }
Is this possible? What's the syntax?
How about a type that has multiple interfaces?