[2.7.10] [typescript] Cannot change the typing of $emit since 2.7.5

This issue has been created since 2022-08-31.

Version

2.7.10

Reproduction link

github.com

Steps to reproduce

  • Clone the repo
  • npm install
  • npm run compile

What is expected?

No typescript compilation errors

What is actually happening?

There is typescript compilation errors


Since 2.7.5 and 005e52d, $emit cannot be typed with vue-class-component.

If you checkout commit 62000a803bbe4ed1dc9d30c20772a948cab49d16 and doing npm install to go back in vue 2.7.4 and npm run compile, everything is fine.

See file src/ComponentWithTypedEvents.ts to see examples about working typing of events.

vidal7 wrote this answer on 2022-09-21

BTW, still not working in [email protected]

More Details About Repo
Owner Name vuejs
Repo Name vue
Full Name vuejs/vue
Language TypeScript
Created Date 2013-07-29
Updated Date 2022-10-07
Star Count 199821
Watcher Count 6092
Fork Count 32893
Issue Count 587

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Explore Moving Documentation To GitHub Pages 5 2022-05-11 2022-08-08
discord link is invalid 2 2021-01-16 2022-10-06
Images not previewing in Discord when using SSL (LetsEncrypt/Certbot certificate) 8 2020-08-14 2022-09-21
Can't seem to install on Glitch. 2 2020-05-10 2022-08-11
404 error on /api/files 1 2021-02-26 2022-07-30
[Error] listen EACCES: permission denied 2 2021-01-07 2022-08-06
Add config setting to overwrite http/https prefix on return adress 3 2020-08-17 2022-07-24
My site doesn't seem to be getting anything from the server. 0 2021-01-28 2022-07-28
docker terminated with NODULE_NOT_FOUND error 0 2021-04-20 2022-04-27
BigDecimal floor() throws ArithmeticException if current exponent is negative 2 2022-01-19 2022-05-16
Debug printing left in code 0 2022-01-03 2022-05-16
Wide gamut support 4 2020-04-14 2022-01-04
is there any way to get the default slice pie-chart open next to parent pie chart? 3 2022-05-11 2022-08-31
Photon is unable to locate exact house number 9 2019-08-20 2022-08-30
integrate with Lightning ecosystem CI 0 2022-01-24 2022-10-06
Signed 16 bit wav files are being corrupted in the endian decode function in v3 3 2022-05-10 2022-09-12
Make reproducible status visible for regular users 2 2021-11-11 2022-09-16
Issue when using SRV records 2 2022-04-10 2022-09-27
Limit choices/enum field in model 2 2021-11-20 2022-09-30
Study highlights and arrows are shifting 1 2022-01-24 2022-01-24
Unlock 120hz framerate on iPad Pro 0 2022-01-27 2022-01-24
Time Odds in the "Clock" tool 2 2022-01-24 2022-07-16
Update Tizen version that is downloaded? 2 2021-07-13 2022-08-13
[Good first issue] Add more tests 0 2022-03-20 2022-09-08
Rules Add Initial Value 0 2020-11-10 2022-08-30
Missing Bulgarian translation 0 2021-11-19 2022-09-10
[Bug]: [benchmark][cluster] queryNode restart and search raise error: fail to search on all shard leaders, err=fail to Search, QueryNode ID=4, reason=collection hasn't been loaded or has been released 10 2022-05-05 2022-08-18
Update sql_db_instance_avg_cpu_utilization_high threshold value 0 2021-10-27 2022-01-29
Update the GitHub link for cloning the repo in the README file 0 2021-09-21 2022-07-17
New component: Sigv4 Authenticator Extension 3 2022-02-02 2022-04-29
GE create empty temporary table in Vertica 2 2021-08-31 2022-09-21
[consolidated] issues for "tactic.default_tactic=smt sat.euf=true" 16 2021-11-01 2022-10-01
[Bug]: Sharing a picture witht the "hide download", strange behaviour 3 2022-08-05 2022-08-16
[Bug]: DAV queries extremely slow with a specific user account 2 2022-08-03 2022-08-13
[Bug]: nextcloud 24 rc1 Hmmm… can't reach this page after upgrade from 24.0.3 2 2022-08-05 2022-08-16
[Bug]: We should not receive share expiration notifications for deleted files 0 2022-08-05 2022-09-18
[Bug]: File and folder sharing in Nextcloud 24 : Expiration calendar display problem (overflow hidden) 0 2022-08-05 2022-08-16
NullReferenceException RenderLoop.TimerTick hiding a ContextMenu 7 2020-12-23 2022-07-21
Deployment error messages should be shown until I dismiss them 1 2022-07-09 2022-10-07
Different weights in ViTMAEModel and ViTMAEForPreTraining 0 2022-03-12 2022-10-03
About output shape of TRILL-distilled v3 model 0 2021-05-30 2022-09-26
Using start, stop, restart from outside the working directory using --project-name 0 2022-02-04 2022-10-04
i18n not working in headless cms for dynamodb only project 0 2021-12-09 2022-09-29
Add side nav link to Serverless Functions Jamstack Explorers course 2 2021-07-08 2022-09-29
SwiftUI Dialog implementation 1 2020-10-28 2022-07-15
$reindex not working, never complets 5 2021-09-02 2022-09-28
[BUG] Cannot connect to Android Emulator 4 2022-04-21 2022-07-18
Custom messages/services generation 14 2020-11-04 2022-09-29
DeleteMetrics task问题 3 2021-06-18 2022-08-27
[AndroidTV] Top bar buttons don't work 0 2022-01-27 2022-09-17