Type inference is the ability of the TypeScript compiler to automatically determine the type of a variable based on its initialization value. You don't need to explicitly specify the type in such cases.