TypeScript/tests/cases/fourslash/formattingMappedType.ts

12 lines
318 B
TypeScript
Raw Normal View History

2016-12-21 13:01:47 +01:00
/// <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]");