Skip to content

Add new option dts: boolean to babel-parser TypeScript plugin #13108

@sosukesuzuki

Description

@sosukesuzuki

Feature Request

  • I would like to work on this feature!

Is your feature request related to a problem?

Yes. The current babel-parser cannot distinguish between .d.ts files and normal .ts files. Because of this, it is not able to throw the proper error. See https://github.com/babel/babel/pull/13101/files#r607217487

Describe the solution you'd like
Add new option dts: boolean to babel-parser TypeScript plugin.

Describe alternatives you've considered.
Throw recoverable errros.

Documentation, Adoption, Migration Strategy

Metadata

Metadata

Assignees

Labels

area: typescriptoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issuepkg: parser

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions