Here is a function that I am working with:
.add({a: 1, b: 2}, function (msg, reply) {
reply({z: msg.z})
})
I attempted something like this:
interface SenecaMethods {
add: (pattern: object, CALLBACK NEEDS TO BE INSERTED HERE) => object;
}
Can anyone help me define the type for this?