fix(44637): add spaces between exports assignment equal token (#44655)

This commit is contained in:
Oleksandr T 2021-06-19 02:37:41 +03:00 committed by GitHub
parent 6e4b7308a3
commit 0858933dce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -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:

View File

@ -0,0 +1,6 @@
/// <reference path="fourslash.ts"/>
////export='foo';
format.document();
verify.currentFileContentIs(`export = 'foo';`);