This is just string typing:
PlaneFactory.getInstance<Plane>('BoeingPlane')
Doesn't that defeat the point of both TypeScript and the factory pattern?
PlaneFactory.getInstance<Plane>('BoeingPlane')
Doesn't that defeat the point of both TypeScript and the factory pattern?