mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-07 05:41:22 -06:00
fix(44637): add spaces between exports assignment equal token (#44655)
This commit is contained in:
parent
6e4b7308a3
commit
0858933dce
@ -459,6 +459,9 @@ namespace ts.formatting {
|
||||
// equal in import a = module('a');
|
||||
// falls through
|
||||
case SyntaxKind.ImportEqualsDeclaration:
|
||||
// equal in export = 1
|
||||
// falls through
|
||||
case SyntaxKind.ExportAssignment:
|
||||
// equal in let a = 0
|
||||
// falls through
|
||||
case SyntaxKind.VariableDeclaration:
|
||||
|
||||
6
tests/cases/fourslash/formatExportAssignment.ts
Normal file
6
tests/cases/fourslash/formatExportAssignment.ts
Normal file
@ -0,0 +1,6 @@
|
||||
/// <reference path="fourslash.ts"/>
|
||||
|
||||
////export='foo';
|
||||
|
||||
format.document();
|
||||
verify.currentFileContentIs(`export = 'foo';`);
|
||||
Loading…
x
Reference in New Issue
Block a user