The result parameters are inconsistent with the return value.  Probably just make the result parameter one object with two properties like the return.  It can still be an object literal; no need to introduce a new type.