3 ms·
It's annoying in TS because (AFAIK?) you need to specify the type and unpack the object: function foo({arg1, arg2, arg3}:{arg1: Thing1, arg2: Thing2, arg3: T
by wk_end 6y ago
It's annoying in TS because (AFAIK?) you need to specify the type and unpack the object:
function foo({arg1, arg2, arg3}:{arg1: Thing1, arg2: Thing2, arg3: Thing3) {
...
}
- KarimDaghari 6y agoYou could specify the type first (instead of doing it inline) and then unpack (if you want)