ban usages of @ts-expect-error
and @ts-ignore
in places that would get stripped when emitting .d.ts
files
#46331
Labels
Awaiting More Feedback
This means we'd like to hear from more people who would be helped by this feature
Suggestion
An idea for TypeScript
Suggestion
π Search Terms
ts-ignore ts-expect-error d.ts
β Viability Checklist
My suggestion meets these guidelines:
β Suggestion
@ts-ignore
and@ts-expect-error
comments that end up exposed in.d.ts
files are stripped when compiled, which results in downstream errors that can go undetected until someone tries to use your package. see #38628 (comment)it would be nice to have an option to ban the comments in type definitions and signatures, where they'd need to be exposed in the
.d.ts
files.The text was updated successfully, but these errors were encountered: