Skip to content

TypeScript error "TS6133: 'E' is declared but its value is never read." #220

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

Closed
pmbednarczyk opened this issue Apr 2, 2021 · 1 comment · Fixed by #216
Closed

TypeScript error "TS6133: 'E' is declared but its value is never read." #220

pmbednarczyk opened this issue Apr 2, 2021 · 1 comment · Fixed by #216
Assignees
Labels
invalid This doesn't seem right next release

Comments

@pmbednarczyk
Copy link

pmbednarczyk commented Apr 2, 2021

Hey! :)
In auto-generated http-client.ts this error occurs (look image). Despite there is /* eslint-disable */ /* tslint:disable */ at the top.

image

My settings:
image

Any advice how to prevent such error? Do I miss something?
When I add underscore prefix to this parameter _E or // @ts-ignore above the line with this error it helps. But I cannot do it mannually every time.

Best regards,
Pawel

@js2me
Copy link
Member

js2me commented Apr 2, 2021

Hello @pmbednarczyk !
Thanks for this issue!
I'll add @ts-ignore in the next release
unused E is needed to just look at what server can return in bad responses

@js2me js2me self-assigned this Apr 2, 2021
@js2me js2me added invalid This doesn't seem right next release labels Apr 2, 2021
@js2me js2me linked a pull request Apr 4, 2021 that will close this issue
@js2me js2me mentioned this issue Apr 4, 2021
@js2me js2me closed this as completed in #216 Apr 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right next release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants