I need to clone an already existing javascript code into Typescript. The javascript is :
object.getsomething( function(err, result) {
// async
});
How can I type the parameter function(err,result) ?
I tried retrieve(func: function(err:string, result:string) : any){}
but the my intellisense says "err" and "result" name can't be found. And I can't find any documentation about the "function" type.