It is used to create an alias name for another data type.
The syntax of the typedef declaration is:[2]
typedef
type declaration;
typedef int length;
In Swift, typedef is called typealias:
typealias PairOfInts = (Int, Int)
https://en.wikipedia.org/wiki/Typedef