Javascript – Specify rest arguments first in Typescript
I have a function which receives a variable number of arguments (each of type string), and a final argument (of a complex type, called Expression). In JavaScript, this looks like: function layerProp(...args) { const fields = args.slice(0, -1) const fallbackExpression…