What is typedef

What does typedef mean, whats the purpose?

C++ Reference:

typedef - creates an alias that can be used anywhere in place of a (possibly complex) type name.

https://en.cppreference.com/w/cpp/language/typedef