mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
Handle TODO's
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
//// interface I<X> {
|
||||
//// x: keyof X;
|
||||
//// }
|
||||
//// class C<Y> implements I<Y> {[| |]}
|
||||
|
||||
verify.rangeAfterCodeFix(`
|
||||
x: keyof Y;
|
||||
`);
|
||||
@@ -0,0 +1,10 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
//// interface I<X> {
|
||||
//// x: { readonly [K in keyof X]: X[K] };
|
||||
//// }
|
||||
//// class C<Y> implements I<Y> {[| |]}
|
||||
|
||||
verify.rangeAfterCodeFix(`
|
||||
x: { readonly [K in keyof X]: Y[K]; };
|
||||
`);
|
||||
Reference in New Issue
Block a user