So far I understand that the typealias is a named alias of an existing type. By using typealias, I could do something like:
typealias MyString = String var str:
The common way to use typealias for me is working with closures:
typealias VoidClosure = () -> Void
func updateFrom(completion: @escaping VoidClosure) { }