simonmitchell / rocc

A Swift framework for remote control of digital Cameras
MIT License
123 stars 15 forks source link

fix type definitions for Continuous Capture functions #3

Closed gswirski closed 5 years ago

gswirski commented 5 years ago

Before this fix, performFunction would incorrectly infer types for callback argument.

performFunction(ContinuousCapture.Mode.set, .single) { error, result in
}

would throw "Cannot cast (, ) -> () into (Error?, _.ReturnType?) -> Void" error.

simonmitchell commented 5 years ago

Thanks again!