I am utilizing https://i.sstatic.net/Sxfg4.png
Within my code, there exists a Car
class.
export default class Car {
static totalCars = 0;
constructor(public name: string, public model: number) {
Car.totalCars++
}
static getReport = (template: string, lastCar : Car): string => {
return `${template} : ${Car.totalCars}, Last car created : ${lastCar.name}, ${lastCar.model}`;
}
}
When implementing the class in code...
import Car from "./Car";
const bmw: Car = new Car("BMW", 2018);
const audi: Car = new Car("Audi", 2017);
console.log(Car.getReport('Total cars created: ', audi));
However, I am encountering an issue where parameter hints are not displayed for the static method getReport
. (They function as expected for constructors and member methods)
Evidence