TypeScript/tests/cases/fourslash/codeFixConvertToMappedObjectType12.ts
Nathan Shively-Sanders 60efb65931
infer-from-usage suggestions can't be ignored, and always do something when invoked. (#28206)
* Do not ts-ignore noImplicitAny suggestions

Still need to write tests.

* Add tests

* More tests

* Update baselines
2018-10-29 13:23:33 -07:00

15 lines
337 B
TypeScript

/// <reference path='fourslash.ts' />
//// type K = "foo" | "bar";
//// interface Foo { }
//// interface Bar<T> { bar: T; }
//// interface SomeType<T> extends Foo, Bar<T> {
//// a: number;
//// b: T;
//// readonly [prop: K]?: any;
//// }
verify.codeFixAvailable([
{ "description": "Infer type of 'any' from usage" }
])