Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The override keyword does not work #106

Closed
sounisi5011 opened this issue May 27, 2021 · 2 comments · Fixed by #108
Closed

The override keyword does not work #106

sounisi5011 opened this issue May 27, 2021 · 2 comments · Fixed by #108

Comments

@sounisi5011
Copy link

In TypeScript 4.3, a new feature, the override keyword, has been added.
However, currently tsd does not process the override keyword correctly.

I have tried to use the override keyword in the following project:

However, the following error occurs:

  src/index.ts:109:4
  ✖  109:4   Member override implicitly has an any type.  
  ✖  109:13  ; expected.                                  
  ✖  122:4   Duplicate identifier override.               
  ✖  122:13  ; expected.                                  

  4 errors

https://github.com/sounisi5011/npm-packages/runs/2685162070#step:9:232

@BendingBender
Copy link
Collaborator

Yeah, this is due to the fact that tsd is still based on typescript@4.2. We'll have to bump the typescript dependency for this to work.

@sounisi5011
Copy link
Author

With the upgrade to tsd@0.16.0, I can now use the override keyword! Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants