Level 16
Why you don't use destructuring?
const config = defineProps({
name: String,
age: Number,
place: String,
...
alertMessage: String
});
const { alertMessage, ...filteredConfig } = config;
Now, you can use filteredConfig in the third-party method without having to deal with alertMessage.
1 like