[typescript] How to pass optional parameters while omitting some other optional parameters?