I am dealing with a function that takes in multiple string arguments and one final argument of a complex type, which is called Expression.
This particular code looks like this in JavaScript:
function layerProp(...args) {
const fields = args.slice(0, -1)
const fallbackExpression = args.slice(-1)[0]
My question is, how can I create a type definition for this function?