(Note these examples are in pure NodeJS for simplicity, but this works fine in TS too if you set up the types correctly)
In classic JS, when passing an object as a function parameter, you had to destructure it yourself within the function body:
function a(options) {
const {foo, bar} = options
console.log(foo, bar)
}
This method works, but unfortunately means that your IDE type-hinting isn't useful when calling this function, and won't tell you what options you have available: