▲ | Izkata a day ago | |
They are passing "prefix", "ending", and "extraNames" in an object. It's just defined inline in the function and using destructuring so the function can access the keys by name without having to put the object in a variable (and the default values are part of the object destructuring). | ||
▲ | Waterluvian a day ago | parent [-] | |
Yeah but to have half-decent typings you then have to define the entire type, again, in the signature. |