Question d’entretien chez Stackit

What is type inference in Typescript?

Réponse à la question d'entretien

Utilisateur anonyme

15 juil. 2022

Type inference is the known ability of the TS compiler to infer the type of a variable without an explicit declaration: const num = 3 // type is number