Skip to content

[Bug]: Babel TypeScript transformer does not support satisfies operator #15067

@ngregory-rbi

Description

@ngregory-rbi

💻

  • Would you like to work on a fix?

How are you using Babel?

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

Input code

const _ = {} satisfies any;

Configuration file name

No response

Configuration

No response

Current and expected behavior

Current Behavior

Error is output: Missing semicolon. (1:12);

Expected Behavior

Code is output like below:

"use strict";

const _ = {};

Environment

N/A

Possible solution

No response

Additional context

The satisfies operator is part of the TypeScript 4.9 beta that is to be released soon. Please add support for it within the transformer.

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions