Skip to content
This repository was archived by the owner on Sep 1, 2026. It is now read-only.
This repository was archived by the owner on Sep 1, 2026. It is now read-only.

Emojis from inferred types are written as unicode escapes in declaration files #3966

Closed

Description

Steps to reproduce

export const IconEmojis = {
    alert_low: "⚠️",
} as const

Playground Link

Behavior with typescript@6.0

Emoji character is preserved as written

export const IconEmojis = {
    alert_low: "⚠️",
};

Behavior with tsgo

Unicode escape is used instead

export declare const IconEmojis: {
    readonly alert_low: "\u26A0\uFE0F";
};

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions