I basically have this:
function foo(){
const [a,b,c,d,e] = pragmatik.parse(arguments);
}
therefore we have a method pragmatik.parse:
function parse(args){
}
now I want to use TypeScript to determine types, all I know are the arguments to Object:
function parse(args: Object){
}
so my question is: TypeScript to give a definition or type for an object argumentsin JS? Sorry, this is a little meta, but please carry me what I ask, this is reasonable.
source
share