diff --git a/Sources/Functions/Block.swift b/Sources/Functions/Block.swift index 5cc19334..98c2e15f 100644 --- a/Sources/Functions/Block.swift +++ b/Sources/Functions/Block.swift @@ -24,13 +24,13 @@ public typealias Closure = (Input) -> Output /// Closure with no arguments and custom return value. -public typealias ResultBlock = () -> Output +public typealias ResultClosure = () -> Output /// Closure that takes custom arguments and returns Void. public typealias ParameterClosure = Closure /// Closure that takes no arguments and returns Void. -public typealias VoidBlock = () -> Void +public typealias VoidBlock = ResultClosure /// Closure with custom arguments and return value, may throw an error. public typealias ThrowableClosure = (Input) throws -> Output