Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// Antes. Un callback por cada tipo devuelto
typedef ResultVenueCompletionHandler = (result: Venue) -> (Void)
typedef ResultHotelCompletionHandler = (result: Hotel) -> (Void)
// Ahora. Al poder ser definidos como genéricos con un tipo nos vale
typedef ResultCompletionHandler<T> = (T) -> (Void)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment