Skip to content

[Bug]: error parsing typescript assertion signature #13761

@JonathanMEdwards

Description

@JonathanMEdwards

💻

  • Would you like to work on a fix?

How are you using Babel?

Other (Next.js, Gatsby, vue-cli, ...)

Input code

this doesn't parse

but this does:

function assert(condition: any): asserts condition {}

Configuration file name

No response

Configuration

No response

Current and expected behavior

parsing should match typescript

Environment

babel repl

Possible solution

No response

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions