Skip to content

Incorrect formatting when destructuring parameters #1891

Closed
@vladima

Description

@vladima
function drawText({ text = "", location: [x, y] = [0, 0], bold = false }) {  
    // Draw text  
}

after formatting document

function drawText( { text = "", location: [x, y]=[0, 0], bold = false }) {  
    // Draw text  
}
  • whitespaces before and after = are removed
  • added extra whitespace before { in parameters

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions