Answers for "typescript function parameters optional destruct"

1

typescript function parameters optional destruct

function x({
  file
}: {
  file?: string
} = {}) {

}

x() // works
x({ file: './path' }) // works
Posted by: Guest on July-03-2021

Code answers related to "typescript function parameters optional destruct"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language