Type Aliases

The following type aliases are available globally.

Typealiases

  • Closure that takes Void and returns Void.

    Declaration

    Swift

    public typealias SimpleClosure = () -> Void
  • Closure that takes Bool and returns Void.

    Declaration

    Swift

    public typealias SuccessClosure = (_ success: Bool) -> Void
  • Closure that takes Bool and returns Void.

    Declaration

    Swift

    public typealias ErrorClosure = (_ error: Error?) -> Void