mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
fixing function type formatting
This commit is contained in:
@@ -429,6 +429,7 @@ namespace ts.formatting {
|
||||
case SyntaxKind.ArrayBindingPattern:
|
||||
case SyntaxKind.ObjectBindingPattern:
|
||||
case SyntaxKind.JsxElement:
|
||||
case SyntaxKind.FunctionType:
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
////function renderElement(
|
||||
//// element: Element,
|
||||
//// renderNode: (
|
||||
//// node: Node/*paramInFuntionType*/
|
||||
/////*paramIndent*/
|
||||
//// ) => void
|
||||
////): void {
|
||||
////}
|
||||
|
||||
format.document();
|
||||
|
||||
goTo.marker("paramInFuntionType");
|
||||
verify.currentLineContentIs(" node: Node");
|
||||
goTo.marker("paramIndent");
|
||||
verify.indentationIs(8);
|
||||
Reference in New Issue
Block a user