DEV Community

Discussion on: Infer in TypeScript, the Great and Powerful

 
artemmalko profile image
Artem Malko • Edited

Yes, it can confuse you)

There are two ideas behind this word: exact mean β€” to make a decision about something, based on some facts and the keyword infer.

let a = 5;
Enter fullscreen mode Exit fullscreen mode

This is the most simple example of the infer process. This example is used to explain the concept of inferring in TypeScript.

Some comments have been hidden by the post's author - find out more