A first pass at removing 'any's with generic Ts.
Differentiate between single-result and multiple-results callbacks.
Include definition for 'times' and 'timesSeries'.
Fix the test to make it compile.