can I typealias for function type? now I using fun...
# announcements
s
can I typealias for function type? now I using function var as this:
Copy code
val requestSuccessHandler: (Int, Array<out Header>?, JSONObject?) -> Unit = { statusCode, headers, response ->
and I want this:
Copy code
typedef (Int, Array<out Header>?, JSONObject?)  SuccessHandler
val requestSuccessHandler : SuccessHandler = {statusCode, headers, response ->
can kotlin do as this?