TypeScript/tests/cases/fourslash/formattingMappedType.ts
Kagami Sascha Rosylight f4c33aaec4 indent inside mapped type
2016-12-21 21:01:47 +09:00

12 lines
318 B
TypeScript

/// <reference path='fourslash.ts' />
/////*generic*/type t < T > = {
/////*map*/ [ P in keyof T ] : T [ P ]
////};
format.document();
goTo.marker("generic");
verify.currentLineContentIs("type t<T> = {");
goTo.marker("map");
verify.currentLineContentIs(" [P in keyof T]: T[P]");