Loading the Kaya editor…
function configure(
  host: string = "localhost",
  port: number = 8080,
  timeout: number = 30000
) {
  return {host: host, port: port, timeout: timeout}
}

let defaults = configure()
let custom = configure(port: 3000)
"Defaults: {{defaults | json}}"
"Custom: {{custom | json}}"