So senden Sie mehrere Werte im Ereignis in JavaScript

const selectedEvent = new CustomEvent('custevent', {
    detail: {
        type: "Fiat",
        model:"500",
        color:"white"
    } 
});

hndlecustEvent(event) {
    this.value1 = event.detail.type;
    this.value2 = event.detail.model;
  }
Ugly Unicorn