2018-05-23 23:09:49 +02:00
|
|
|
/// <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;
|
|
|
|
//// }
|
|
|
|
|
2018-10-29 21:23:33 +01:00
|
|
|
verify.codeFixAvailable([
|
|
|
|
{ "description": "Infer type of 'any' from usage" }
|
|
|
|
])
|