vuejs / rfcs

RFCs for substantial changes / feature additions to Vue core
4.85k stars 551 forks source link

When emit requires different parameter types, can't DefineEmit declare more than one at the same time? #319

Closed yanbowe closed 3 years ago

yanbowe commented 3 years ago

Syntax Error: TypeError: Cannot read property 'content' of null when you declare two emits with different parameters

If only one DefineEmit exists at the same time, how do you distinguish between the type and number of arguments