Skip to content

x as <type> should be allowed in boolean expressions #656

@ad-si

Description

@ad-si

Describe the bug

dprint-plugin-typescript version: 0.91.6.wasm

Input Code

const a = testNum as number >= 0
const b = testStr as string >= 0

Expected Output

const a = testNum as number >= 0
const b = testStr as string >= 0

Actual Output

Expression expected at file:///file.ts:1:30

  const a = testNum as number >= 0
                               ~

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstream

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions