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

// @ts-expect-error not included in generated type definitions. #43570

Closed
peterp opened this issue Apr 7, 2021 · 2 comments
Closed

// @ts-expect-error not included in generated type definitions. #43570

peterp opened this issue Apr 7, 2021 · 2 comments
Labels
Duplicate An existing issue was already created

Comments

@peterp
Copy link

peterp commented Apr 7, 2021

Given a TypeScript file with the following:

// @ts-expect-error "X" does not exist
import type { X } from './y'

I generate the type definitions for this file, but the // @ts-expect-error "X" does not exist suppression is removed. My expectation is that it's included in generated type definitions.

@andrewbranch
Copy link
Member

Duplicate of #38628 (no reason for @ts-expect-error to be different from @ts-ignore in this regard)

@andrewbranch andrewbranch added the Duplicate An existing issue was already created label Apr 7, 2021
@typescript-bot
Copy link
Collaborator

This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

3 participants