TypeScript/tests/cases/fourslash/codeFixConvertToMappedObjectType5.ts
Wenlu Wang 4606709672 add code fix convert to mapped object type (#24286)
* add code fix convert to mapped object type

* add support for type literal and improve test

* fix typo

* add support for heritageClauses

* only determine declaration is not class
2018-05-23 14:09:49 -07:00

9 lines
153 B
TypeScript

/// <reference path='fourslash.ts' />
//// type K = "foo" | "bar";
//// class SomeType {
//// [prop: K]: any;
//// }
verify.not.codeFixAvailable()