typescript function parameters optional destruct

Solutions on MaxInterview for typescript function parameters optional destruct by the best coders in the world

showing results for - "typescript function parameters optional destruct"
Paula
18 Jan 2019
1function x({
2  file
3}: {
4  file?: string
5} = {}) {
6
7}
8
9x() // works
10x({ file: './path' }) // works