agile-se1 / bit-web

Bad function overloading JS-0388
Anti-pattern
Minor
5 months ago5 months old
This overload and the one on line 84 can be combined into one signature taking 'confirm' | 'cancel'
82const emit = defineEmits<{
83    (e: 'update:modelValue', modelValue: boolean): void
84    (e: 'confirm'): void
85    (e: 'cancel'): void86}>()
87
88
This overload and the one on line 57 can be combined into one signature taking 'confirm' | 'cancel'
55const emit = defineEmits<{
56    (e: 'update:modelValue', modelValue: boolean): void
57    (e: 'confirm'): void
58    (e: 'cancel'): void59}>()
60
61