Skip to content

Formatting error with single quotes inside a string literal type #61

@michaelstephendavies

Description

@michaelstephendavies

Describe the bug
Hovering over the error in:

const x: "' 'Oh no" = null;

The formatting is broken

Type null is not assignable to type "'Oh no"'.

Expected behavior

Type null is not assignable to type "' 'Oh no".

Original error
Type 'null' is not assignable to type '"' 'Oh no"'.ts(2322)

Screenshots
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions